0s autopkgtest [23:12:41]: starting date and time: 2025-10-18 23:12:41+0000 0s autopkgtest [23:12:41]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [23:12:41]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.aajo62m0/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@sto01-3.secgroup --name adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c from image adt/ubuntu-resolute-amd64-server-20251018.img (UUID dd697a48-b6cc-4a02-84bf-0f9f2fad5f89)... 29s autopkgtest [23:13:10]: testbed dpkg architecture: amd64 29s autopkgtest [23:13:10]: testbed apt version: 3.1.6ubuntu2 29s autopkgtest [23:13:10]: @@@@@@@@@@@@@@@@@@@@ test bed setup 29s autopkgtest [23:13:10]: testbed release detected to be: None 31s autopkgtest [23:13:11]: updating testbed package index (apt update) 31s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 31s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 31s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 31s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 31s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [54.3 kB] 31s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 31s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [18.2 kB] 31s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [431 kB] 31s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [65.5 kB] 31s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [108 kB] 31s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3208 B] 31s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [28.0 kB] 31s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [125 kB] 31s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [319 kB] 31s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [3088 B] 31s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [9188 B] 31s Fetched 1253 kB in 1s (1992 kB/s) 31s Reading package lists... 32s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 32s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 32s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 32s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 32s Reading package lists... 32s Reading package lists... 32s Building dependency tree... 32s Reading state information... 32s Calculating upgrade... 32s The following packages will be upgraded: 32s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 32s libpython3-stdlib python3 python3-minimal 32s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 32s Need to get 2751 kB of archives. 32s After this operation, 2048 B of additional disk space will be used. 32s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 32s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 32s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 33s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.8ubuntu1 [1140 kB] 33s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.8ubuntu1 [1438 kB] 33s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-1.0-1 amd64 1.86.0-6 [85.9 kB] 33s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-girepository-2.0 amd64 1.86.0-6 [25.3 kB] 33s dpkg-preconfigure: unable to re-open stdin: No such file or directory 33s Fetched 2751 kB in 1s (4773 kB/s) 33s (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 ... 78439 files and directories currently installed.) 33s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 33s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 33s Setting up python3-minimal (3.13.7-2) ... 34s (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 ... 78439 files and directories currently installed.) 34s Preparing to unpack .../0-python3_3.13.7-2_amd64.deb ... 34s running python pre-rtupdate hooks for python3.13... 34s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 34s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_amd64.deb ... 34s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 34s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_amd64.deb ... 34s Unpacking libapt-pkg7.0:amd64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 34s Preparing to unpack .../3-apt_3.1.8ubuntu1_amd64.deb ... 34s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 34s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_amd64.deb ... 34s Unpacking libgirepository-1.0-1:amd64 (1.86.0-6) over (1.84.0-1) ... 34s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_amd64.deb ... 34s Unpacking gir1.2-girepository-2.0:amd64 (1.86.0-6) over (1.84.0-1) ... 34s Setting up libgirepository-1.0-1:amd64 (1.86.0-6) ... 34s Setting up libapt-pkg7.0:amd64 (3.1.8ubuntu1) ... 34s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 34s Setting up apt (3.1.8ubuntu1) ... 34s Setting up python3 (3.13.7-2) ... 34s running python rtupdate hooks for python3.13... 34s running python post-rtupdate hooks for python3.13... 34s Setting up gir1.2-girepository-2.0:amd64 (1.86.0-6) ... 34s Processing triggers for man-db (2.13.1-1) ... 35s Processing triggers for libc-bin (2.42-0ubuntu3) ... 35s autopkgtest [23:13:16]: upgrading testbed (apt dist-upgrade and autopurge) 36s Reading package lists... 36s Building dependency tree... 36s Reading state information... 36s Calculating upgrade... 36s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 36s Reading package lists... 36s Building dependency tree... 36s Reading state information... 36s Solving dependencies... 37s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 37s autopkgtest [23:13:18]: rebooting testbed after setup commands that affected boot 52s autopkgtest [23:13:33]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:00:33 UTC 2025 54s autopkgtest [23:13:35]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 60s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (dsc) [4834 B] 60s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (tar) [661 kB] 60s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (tar) [5679 kB] 60s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.0-2 (diff) [140 kB] 60s gpgv: Signature made Fri Sep 12 02:03:07 2025 UTC 60s gpgv: using RSA key 43B03E28326C54CFA2EC66A340F65066AD7C16DB 60s gpgv: Can't check signature: No public key 60s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.0-2.dsc: no acceptable signature found 61s autopkgtest [23:13:42]: testing package glib2.0 version 2.86.0-2 65s autopkgtest [23:13:46]: build not needed 72s autopkgtest [23:13:53]: test build: preparing testbed 72s Reading package lists... 72s Building dependency tree... 72s Reading state information... 72s Solving dependencies... 73s The following NEW packages will be installed: 73s build-essential cpp cpp-15 cpp-15-x86-64-linux-gnu cpp-x86-64-linux-gnu g++ 73s g++-15 g++-15-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-15 73s gcc-15-x86-64-linux-gnu gcc-x86-64-linux-gnu libasan8 libblkid-dev libcc1-0 73s libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 libhwasan0 libisl23 libitm1 73s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 73s libpcre2-posix3 libpkgconf3 libquadmath0 libselinux1-dev libsepol-dev 73s libstdc++-15-dev libsysprof-capture-4-dev libtsan2 libubsan1 pkgconf 73s pkgconf-bin uuid-dev zlib1g-dev 73s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 73s Need to get 75.1 MB of archives. 73s After this operation, 259 MB of additional disk space will be used. 73s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libisl23 amd64 0.27-1 [685 kB] 73s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libmpc3 amd64 1.3.1-1build3 [57.0 kB] 73s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-15-x86-64-linux-gnu amd64 15.2.0-5ubuntu1 [12.9 MB] 73s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-15 amd64 15.2.0-5ubuntu1 [1028 B] 73s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [5746 B] 73s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp amd64 4:15.2.0-4ubuntu1 [22.4 kB] 73s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libcc1-0 amd64 15.2.0-5ubuntu1 [47.4 kB] 73s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libgomp1 amd64 15.2.0-5ubuntu1 [151 kB] 73s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libitm1 amd64 15.2.0-5ubuntu1 [29.3 kB] 73s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libasan8 amd64 15.2.0-5ubuntu1 [3071 kB] 73s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 liblsan0 amd64 15.2.0-5ubuntu1 [1360 kB] 73s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 libtsan2 amd64 15.2.0-5ubuntu1 [2757 kB] 73s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 libubsan1 amd64 15.2.0-5ubuntu1 [1210 kB] 73s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 libhwasan0 amd64 15.2.0-5ubuntu1 [1685 kB] 73s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libquadmath0 amd64 15.2.0-5ubuntu1 [153 kB] 73s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libgcc-15-dev amd64 15.2.0-5ubuntu1 [2863 kB] 73s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-15-x86-64-linux-gnu amd64 15.2.0-5ubuntu1 [25.4 MB] 74s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-15 amd64 15.2.0-5ubuntu1 [523 kB] 74s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [1208 B] 74s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc amd64 4:15.2.0-4ubuntu1 [5024 B] 74s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 libstdc++-15-dev amd64 15.2.0-5ubuntu1 [2573 kB] 74s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-15-x86-64-linux-gnu amd64 15.2.0-5ubuntu1 [14.4 MB] 74s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-15 amd64 15.2.0-5ubuntu1 [23.7 kB] 74s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [966 B] 74s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 g++ amd64 4:15.2.0-4ubuntu1 [1100 B] 74s Get:26 http://ftpmaster.internal/ubuntu resolute/main amd64 build-essential amd64 12.12ubuntu1 [5080 B] 74s Get:27 http://ftpmaster.internal/ubuntu resolute/main amd64 libffi-dev amd64 3.5.2-1build1 [65.6 kB] 74s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 uuid-dev amd64 2.41-4ubuntu4 [56.3 kB] 74s Get:29 http://ftpmaster.internal/ubuntu resolute/main amd64 libblkid-dev amd64 2.41-4ubuntu4 [244 kB] 74s Get:30 http://ftpmaster.internal/ubuntu resolute/main amd64 libsepol-dev amd64 3.8.1-1 [406 kB] 74s Get:31 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-16-0 amd64 10.46-1 [243 kB] 74s Get:32 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-32-0 amd64 10.46-1 [230 kB] 74s Get:33 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-posix3 amd64 10.46-1 [7354 B] 74s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-dev amd64 10.46-1 [832 kB] 74s Get:35 http://ftpmaster.internal/ubuntu resolute/main amd64 libselinux1-dev amd64 3.8.1-1build1 [180 kB] 74s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 libmount-dev amd64 2.41-4ubuntu4 [36.2 kB] 74s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 libsysprof-capture-4-dev amd64 48.0-2 [55.1 kB] 74s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 libpkgconf3 amd64 1.8.1-4build1 [32.8 kB] 74s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 pkgconf-bin amd64 1.8.1-4build1 [21.7 kB] 74s Get:40 http://ftpmaster.internal/ubuntu resolute/main amd64 pkgconf amd64 1.8.1-4build1 [16.8 kB] 74s Get:41 http://ftpmaster.internal/ubuntu resolute/main amd64 zlib1g-dev amd64 1:1.3.dfsg+really1.3.1-1ubuntu2 [898 kB] 74s Get:42 http://ftpmaster.internal/ubuntu resolute/main amd64 libgio-2.0-dev amd64 2.86.0-2 [1817 kB] 74s Fetched 75.1 MB in 2s (44.2 MB/s) 74s Selecting previously unselected package libisl23:amd64. 75s (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 ... 78439 files and directories currently installed.) 75s Preparing to unpack .../00-libisl23_0.27-1_amd64.deb ... 75s Unpacking libisl23:amd64 (0.27-1) ... 75s Selecting previously unselected package libmpc3:amd64. 75s Preparing to unpack .../01-libmpc3_1.3.1-1build3_amd64.deb ... 75s Unpacking libmpc3:amd64 (1.3.1-1build3) ... 75s Selecting previously unselected package cpp-15-x86-64-linux-gnu. 75s Preparing to unpack .../02-cpp-15-x86-64-linux-gnu_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking cpp-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package cpp-15. 75s Preparing to unpack .../03-cpp-15_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking cpp-15 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package cpp-x86-64-linux-gnu. 75s Preparing to unpack .../04-cpp-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 75s Unpacking cpp-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 75s Selecting previously unselected package cpp. 75s Preparing to unpack .../05-cpp_4%3a15.2.0-4ubuntu1_amd64.deb ... 75s Unpacking cpp (4:15.2.0-4ubuntu1) ... 75s Selecting previously unselected package libcc1-0:amd64. 75s Preparing to unpack .../06-libcc1-0_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libcc1-0:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libgomp1:amd64. 75s Preparing to unpack .../07-libgomp1_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libgomp1:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libitm1:amd64. 75s Preparing to unpack .../08-libitm1_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libitm1:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libasan8:amd64. 75s Preparing to unpack .../09-libasan8_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libasan8:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package liblsan0:amd64. 75s Preparing to unpack .../10-liblsan0_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking liblsan0:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libtsan2:amd64. 75s Preparing to unpack .../11-libtsan2_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libtsan2:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libubsan1:amd64. 75s Preparing to unpack .../12-libubsan1_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libubsan1:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libhwasan0:amd64. 75s Preparing to unpack .../13-libhwasan0_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libhwasan0:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libquadmath0:amd64. 75s Preparing to unpack .../14-libquadmath0_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libquadmath0:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package libgcc-15-dev:amd64. 75s Preparing to unpack .../15-libgcc-15-dev_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libgcc-15-dev:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package gcc-15-x86-64-linux-gnu. 75s Preparing to unpack .../16-gcc-15-x86-64-linux-gnu_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking gcc-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package gcc-15. 75s Preparing to unpack .../17-gcc-15_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking gcc-15 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package gcc-x86-64-linux-gnu. 75s Preparing to unpack .../18-gcc-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 75s Unpacking gcc-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 75s Selecting previously unselected package gcc. 75s Preparing to unpack .../19-gcc_4%3a15.2.0-4ubuntu1_amd64.deb ... 75s Unpacking gcc (4:15.2.0-4ubuntu1) ... 75s Selecting previously unselected package libstdc++-15-dev:amd64. 75s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking libstdc++-15-dev:amd64 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package g++-15-x86-64-linux-gnu. 75s Preparing to unpack .../21-g++-15-x86-64-linux-gnu_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking g++-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package g++-15. 75s Preparing to unpack .../22-g++-15_15.2.0-5ubuntu1_amd64.deb ... 75s Unpacking g++-15 (15.2.0-5ubuntu1) ... 75s Selecting previously unselected package g++-x86-64-linux-gnu. 75s Preparing to unpack .../23-g++-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 75s Unpacking g++-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 75s Selecting previously unselected package g++. 75s Preparing to unpack .../24-g++_4%3a15.2.0-4ubuntu1_amd64.deb ... 75s Unpacking g++ (4:15.2.0-4ubuntu1) ... 75s Selecting previously unselected package build-essential. 75s Preparing to unpack .../25-build-essential_12.12ubuntu1_amd64.deb ... 75s Unpacking build-essential (12.12ubuntu1) ... 75s Selecting previously unselected package libffi-dev:amd64. 75s Preparing to unpack .../26-libffi-dev_3.5.2-1build1_amd64.deb ... 75s Unpacking libffi-dev:amd64 (3.5.2-1build1) ... 76s Selecting previously unselected package uuid-dev:amd64. 76s Preparing to unpack .../27-uuid-dev_2.41-4ubuntu4_amd64.deb ... 76s Unpacking uuid-dev:amd64 (2.41-4ubuntu4) ... 76s Selecting previously unselected package libblkid-dev:amd64. 76s Preparing to unpack .../28-libblkid-dev_2.41-4ubuntu4_amd64.deb ... 76s Unpacking libblkid-dev:amd64 (2.41-4ubuntu4) ... 76s Selecting previously unselected package libsepol-dev:amd64. 76s Preparing to unpack .../29-libsepol-dev_3.8.1-1_amd64.deb ... 76s Unpacking libsepol-dev:amd64 (3.8.1-1) ... 76s Selecting previously unselected package libpcre2-16-0:amd64. 76s Preparing to unpack .../30-libpcre2-16-0_10.46-1_amd64.deb ... 76s Unpacking libpcre2-16-0:amd64 (10.46-1) ... 76s Selecting previously unselected package libpcre2-32-0:amd64. 76s Preparing to unpack .../31-libpcre2-32-0_10.46-1_amd64.deb ... 76s Unpacking libpcre2-32-0:amd64 (10.46-1) ... 76s Selecting previously unselected package libpcre2-posix3:amd64. 76s Preparing to unpack .../32-libpcre2-posix3_10.46-1_amd64.deb ... 76s Unpacking libpcre2-posix3:amd64 (10.46-1) ... 76s Selecting previously unselected package libpcre2-dev:amd64. 76s Preparing to unpack .../33-libpcre2-dev_10.46-1_amd64.deb ... 76s Unpacking libpcre2-dev:amd64 (10.46-1) ... 76s Selecting previously unselected package libselinux1-dev:amd64. 76s Preparing to unpack .../34-libselinux1-dev_3.8.1-1build1_amd64.deb ... 76s Unpacking libselinux1-dev:amd64 (3.8.1-1build1) ... 76s Selecting previously unselected package libmount-dev:amd64. 76s Preparing to unpack .../35-libmount-dev_2.41-4ubuntu4_amd64.deb ... 76s Unpacking libmount-dev:amd64 (2.41-4ubuntu4) ... 76s Selecting previously unselected package libsysprof-capture-4-dev:amd64. 76s Preparing to unpack .../36-libsysprof-capture-4-dev_48.0-2_amd64.deb ... 76s Unpacking libsysprof-capture-4-dev:amd64 (48.0-2) ... 76s Selecting previously unselected package libpkgconf3:amd64. 76s Preparing to unpack .../37-libpkgconf3_1.8.1-4build1_amd64.deb ... 76s Unpacking libpkgconf3:amd64 (1.8.1-4build1) ... 76s Selecting previously unselected package pkgconf-bin. 76s Preparing to unpack .../38-pkgconf-bin_1.8.1-4build1_amd64.deb ... 76s Unpacking pkgconf-bin (1.8.1-4build1) ... 76s Selecting previously unselected package pkgconf:amd64. 76s Preparing to unpack .../39-pkgconf_1.8.1-4build1_amd64.deb ... 76s Unpacking pkgconf:amd64 (1.8.1-4build1) ... 76s Selecting previously unselected package zlib1g-dev:amd64. 76s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_amd64.deb ... 76s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 76s Selecting previously unselected package libgio-2.0-dev:amd64. 76s Preparing to unpack .../41-libgio-2.0-dev_2.86.0-2_amd64.deb ... 76s Unpacking libgio-2.0-dev:amd64 (2.86.0-2) ... 76s Setting up libgomp1:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libffi-dev:amd64 (3.5.2-1build1) ... 76s Setting up libpcre2-16-0:amd64 (10.46-1) ... 76s Setting up libsysprof-capture-4-dev:amd64 (48.0-2) ... 76s Setting up libpcre2-32-0:amd64 (10.46-1) ... 76s Setting up libpkgconf3:amd64 (1.8.1-4build1) ... 76s Setting up uuid-dev:amd64 (2.41-4ubuntu4) ... 76s Setting up libquadmath0:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libmpc3:amd64 (1.3.1-1build3) ... 76s Setting up libsepol-dev:amd64 (3.8.1-1) ... 76s Setting up pkgconf-bin (1.8.1-4build1) ... 76s Setting up libubsan1:amd64 (15.2.0-5ubuntu1) ... 76s Setting up zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 76s Setting up libpcre2-posix3:amd64 (10.46-1) ... 76s Setting up libhwasan0:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libasan8:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libtsan2:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libisl23:amd64 (0.27-1) ... 76s Setting up libcc1-0:amd64 (15.2.0-5ubuntu1) ... 76s Setting up liblsan0:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libitm1:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libblkid-dev:amd64 (2.41-4ubuntu4) ... 76s Setting up libgcc-15-dev:amd64 (15.2.0-5ubuntu1) ... 76s Setting up libpcre2-dev:amd64 (10.46-1) ... 76s Setting up libselinux1-dev:amd64 (3.8.1-1build1) ... 76s Setting up cpp-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 76s Setting up pkgconf:amd64 (1.8.1-4build1) ... 76s Setting up gcc-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 76s Setting up libstdc++-15-dev:amd64 (15.2.0-5ubuntu1) ... 76s Setting up cpp-15 (15.2.0-5ubuntu1) ... 76s Setting up libmount-dev:amd64 (2.41-4ubuntu4) ... 76s Setting up cpp-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 76s Setting up g++-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 76s Setting up libgio-2.0-dev:amd64 (2.86.0-2) ... 76s Setting up gcc-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 76s Setting up gcc-15 (15.2.0-5ubuntu1) ... 76s Setting up cpp (4:15.2.0-4ubuntu1) ... 76s Setting up g++-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 76s Setting up g++-15 (15.2.0-5ubuntu1) ... 76s Setting up gcc (4:15.2.0-4ubuntu1) ... 76s Setting up g++ (4:15.2.0-4ubuntu1) ... 76s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 76s Setting up build-essential (12.12ubuntu1) ... 76s Processing triggers for libc-bin (2.42-0ubuntu3) ... 76s Processing triggers for man-db (2.13.1-1) ... 76s Processing triggers for libglib2.0-0t64:amd64 (2.86.0-2) ... 76s No schema files found: doing nothing. 76s Processing triggers for install-info (7.1.1-1ubuntu1) ... 77s autopkgtest [23:13:58]: test build: [----------------------- 77s + mode=dynamic 77s + getopt -o --long static -n debian/tests/build -- 77s + getopt_temp= -- 77s + eval set -- -- 77s + set -- -- 77s + true 77s + shift 77s + break 77s + mktemp -d 77s + WORKDIR=/tmp/tmp.SgI64xpaeS 77s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 77s + cd /tmp/tmp.SgI64xpaeS 77s + [ -n ] 77s + CROSS_COMPILE= 77s + cat 77s + cat 77s + cat 77s + cat 77s + cat 77s + cat 77s + cflags= 77s + pcflags= 77s + packages=glib-2.0 77s + pkg-config --cflags --libs glib-2.0 77s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 77s build (glib, dynamic): OK 77s + echo build (glib, dynamic): OK 77s + [ -x glib-dynamic ] 77s + foo=bar ./glib-dynamic 77s + echo run (glib, dynamic): OK 77s + cflags= 77s + pcflags= 77s + packages=gobject-2.0 77s + pkg-config --cflags --libs gobject-2.0 77s run (glib, dynamic): OK 77s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 78s build (gobject, dynamic): OK 78s + echo build (gobject, dynamic): OK 78s + [ -x gobject-dynamic ] 78s + foo=bar ./gobject-dynamic 78s + echo run (gobject, dynamic): OK 78s + cflags= 78s + pcflags= 78s + packages=gio-2.0 78s + run (gobject, dynamic): OK 78s pkg-config --cflags --libs gio-2.0 78s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 78s build (gio, dynamic): OK 78s + echo build (gio, dynamic): OK 78s + [ -x gio-dynamic ] 78s + foo=bar ./gio-dynamic 78s + echo run (gio, dynamic): OK 78s + cflags= 78s + pcflags= 78s + packages=gio-unix-2.0 78s + pkg-config --cflags --libs gio-unix-2.0 78s run (gio, dynamic): OK 78s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 78s + echo build (gio-unix, dynamic): OK 78s + [ -x gio-unix-dynamic ] 78s + foo=bar ./gio-unix-dynamic 78s build (gio-unix, dynamic): OK 78s run (gio-unix, dynamic): OK 78s + echo run (gio-unix, dynamic): OK 78s + cflags= 78s + pcflags= 78s + packages=gmodule-2.0 78s + pkg-config --cflags --libs gmodule-2.0 78s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 78s build (gmodule, dynamic): OK 78s + echo build (gmodule, dynamic): OK 78s + [ -x gmodule-dynamic ] 78s + foo=bar ./gmodule-dynamic 78s + echo run (gmodule, dynamic): OK 78s + cflags= 78s + pcflags= 78s + packages=gthread-2.0 78s + pkg-config --cflags --libs gthread-2.0 78s run (gmodule, dynamic): OK 78s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 78s build (gthread, dynamic): OK 78s + echo build (gthread, dynamic): OK 78s + [ -x gthread-dynamic ] 78s + foo=bar ./gthread-dynamic 78s run (gthread, dynamic): OK 78s + echo run (gthread, dynamic): OK 78s + rm -rf /tmp/tmp.SgI64xpaeS 78s autopkgtest [23:13:59]: test build: -----------------------] 78s build PASS (superficial) 78s autopkgtest [23:13:59]: test build: - - - - - - - - - - results - - - - - - - - - - 79s autopkgtest [23:14:00]: test build-static: preparing testbed 79s Reading package lists... 79s Building dependency tree... 79s Reading state information... 79s Solving dependencies... 79s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 80s autopkgtest [23:14:01]: test build-static: [----------------------- 80s + mode=dynamic 80s + getopt -o --long static -n debian/tests/build -- --static 80s + getopt_temp= --static -- 80s + eval set -- --static -- 80s + set -- --static -- 80s + true 80s + mode=static 80s + shift 80s + continue 80s + true 80s + shift 80s + break 80s + mktemp -d 80s + WORKDIR=/tmp/tmp.YpTX09hxTD 80s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 80s + cd /tmp/tmp.YpTX09hxTD 80s + [ -n ] 80s + CROSS_COMPILE= 80s + cat 80s + cat 80s + cat 80s + cat 80s + cat 80s + cat 80s + cflags= 80s + pcflags= 80s + packages=glib-2.0 80s + cflags=-static 80s + pcflags=--static 80s + pkg-config --static --cflags --libs glib-2.0 80s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 80s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 80s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s build (glib, static): OK 80s + echo build (glib, static): OK 80s + [ -x glib-static ] 80s + foo=bar ./glib-static 80s + echo run (glib, static): OK 80s + cflags= 80s + pcflags= 80s + packages=gobject-2.0 80s + cflags=-static 80s + pcflags=--static 80s + pkg-config --static --cflags --libs gobject-2.0 80s run (glib, static): OK 80s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 80s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 80s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s build (gobject, static): OK 80s run (gobject, static): OK 80s + echo build (gobject, static): OK 80s + [ -x gobject-static ] 80s + foo=bar ./gobject-static 80s + echo run (gobject, static): OK 80s + cflags= 80s + pcflags= 80s + packages=gio-2.0 80s + cflags=-static 80s + pcflags=--static 80s + continue 80s + cflags= 80s + pcflags= 80s + packages=gio-unix-2.0 80s + cflags=-static 80s + pcflags=--static 80s + continue 80s + cflags= 80s + pcflags= 80s + packages=gmodule-2.0 80s + cflags=-static 80s + pcflags=--static 80s + pkg-config --static --cflags --libs gmodule-2.0 80s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 80s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 80s (.text+0x5e7): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 80s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s build (gmodule, static): OK 80s + echo build (gmodule, static): OK 80s + [ -x gmodule-static ] 80s + foo=bar ./gmodule-static 80s run (gmodule, static): OK 80s + echo run (gmodule, static): OK 80s + cflags= 80s + pcflags= 80s + packages=gthread-2.0 80s + cflags=-static 80s + pcflags=--static 80s + pkg-config --static --cflags --libs gthread-2.0 80s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 80s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 80s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 80s build (gthread, static): OK 80s + echo build (gthread, static): OK 80s + [ -x gthread-static ] 80s + foo=bar ./gthread-static 80s + echo run (gthread, static): OK 80s + rm -rf /tmp/tmp.YpTX09hxTD 80s run (gthread, static): OK 81s autopkgtest [23:14:02]: test build-static: -----------------------] 81s autopkgtest [23:14:02]: test build-static: - - - - - - - - - - results - - - - - - - - - - 81s build-static PASS (superficial) 81s autopkgtest [23:14:02]: test girepository-tools: preparing testbed 99s Creating nova instance adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c from image adt/ubuntu-resolute-amd64-server-20251018.img (UUID dd697a48-b6cc-4a02-84bf-0f9f2fad5f89)... 123s autopkgtest [23:14:44]: testbed dpkg architecture: amd64 123s autopkgtest [23:14:44]: testbed apt version: 3.1.6ubuntu2 123s autopkgtest [23:14:44]: @@@@@@@@@@@@@@@@@@@@ test bed setup 124s autopkgtest [23:14:45]: testbed release detected to be: resolute 124s autopkgtest [23:14:45]: updating testbed package index (apt update) 124s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 124s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 124s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 125s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 125s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [18.2 kB] 125s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 125s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [54.3 kB] 125s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [431 kB] 125s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [108 kB] 125s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [65.5 kB] 125s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [28.0 kB] 125s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3208 B] 125s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [125 kB] 125s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [319 kB] 125s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [3088 B] 125s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [9188 B] 125s Fetched 1253 kB in 1s (2175 kB/s) 125s Reading package lists... 126s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 126s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 126s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 126s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 127s Reading package lists... 127s Reading package lists... 127s Building dependency tree... 127s Reading state information... 127s Calculating upgrade... 127s The following packages will be upgraded: 127s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 127s libpython3-stdlib python3 python3-minimal 127s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 127s Need to get 2751 kB of archives. 127s After this operation, 2048 B of additional disk space will be used. 127s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 127s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 127s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 127s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.8ubuntu1 [1140 kB] 127s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.8ubuntu1 [1438 kB] 127s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-1.0-1 amd64 1.86.0-6 [85.9 kB] 127s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-girepository-2.0 amd64 1.86.0-6 [25.3 kB] 127s dpkg-preconfigure: unable to re-open stdin: No such file or directory 127s Fetched 2751 kB in 0s (8577 kB/s) 128s (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 ... 78439 files and directories currently installed.) 128s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 128s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 129s Setting up python3-minimal (3.13.7-2) ... 129s (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 ... 78439 files and directories currently installed.) 129s Preparing to unpack .../0-python3_3.13.7-2_amd64.deb ... 129s running python pre-rtupdate hooks for python3.13... 129s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 129s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_amd64.deb ... 129s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 129s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_amd64.deb ... 129s Unpacking libapt-pkg7.0:amd64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 129s Preparing to unpack .../3-apt_3.1.8ubuntu1_amd64.deb ... 129s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 129s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_amd64.deb ... 129s Unpacking libgirepository-1.0-1:amd64 (1.86.0-6) over (1.84.0-1) ... 129s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_amd64.deb ... 129s Unpacking gir1.2-girepository-2.0:amd64 (1.86.0-6) over (1.84.0-1) ... 129s Setting up libgirepository-1.0-1:amd64 (1.86.0-6) ... 129s Setting up libapt-pkg7.0:amd64 (3.1.8ubuntu1) ... 129s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 129s Setting up apt (3.1.8ubuntu1) ... 129s Setting up python3 (3.13.7-2) ... 129s running python rtupdate hooks for python3.13... 129s running python post-rtupdate hooks for python3.13... 129s Setting up gir1.2-girepository-2.0:amd64 (1.86.0-6) ... 129s Processing triggers for man-db (2.13.1-1) ... 129s Processing triggers for libc-bin (2.42-0ubuntu3) ... 129s autopkgtest [23:14:50]: upgrading testbed (apt dist-upgrade and autopurge) 130s Reading package lists... 130s Building dependency tree... 130s Reading state information... 130s Calculating upgrade... 130s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 131s Reading package lists... 131s Building dependency tree... 131s Reading state information... 131s Solving dependencies... 131s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 131s autopkgtest [23:14:52]: rebooting testbed after setup commands that affected boot 149s Reading package lists... 149s Building dependency tree... 149s Reading state information... 149s Solving dependencies... 149s The following NEW packages will be installed: 149s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 149s native-architecture 149s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 149s Need to get 1054 kB of archives. 149s After this operation, 12.5 MB of additional disk space will be used. 149s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-glib-2.0-dev amd64 2.86.0-2 [865 kB] 149s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 native-architecture all 0.2.6 [2140 B] 149s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-2.0-0 amd64 2.86.0-2 [76.1 kB] 149s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 girepository-tools amd64 2.86.0-2 [111 kB] 149s Fetched 1054 kB in 0s (3142 kB/s) 149s Selecting previously unselected package gir1.2-glib-2.0-dev:amd64. 150s (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 ... 78439 files and directories currently installed.) 150s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.0-2_amd64.deb ... 150s Unpacking gir1.2-glib-2.0-dev:amd64 (2.86.0-2) ... 150s Selecting previously unselected package native-architecture. 150s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 150s Unpacking native-architecture (0.2.6) ... 150s Selecting previously unselected package libgirepository-2.0-0:amd64. 150s Preparing to unpack .../libgirepository-2.0-0_2.86.0-2_amd64.deb ... 150s Unpacking libgirepository-2.0-0:amd64 (2.86.0-2) ... 150s Selecting previously unselected package girepository-tools:amd64. 150s Preparing to unpack .../girepository-tools_2.86.0-2_amd64.deb ... 150s Unpacking girepository-tools:amd64 (2.86.0-2) ... 150s Setting up native-architecture (0.2.6) ... 150s Setting up libgirepository-2.0-0:amd64 (2.86.0-2) ... 150s Setting up gir1.2-glib-2.0-dev:amd64 (2.86.0-2) ... 150s Setting up girepository-tools:amd64 (2.86.0-2) ... 150s Processing triggers for man-db (2.13.1-1) ... 150s Processing triggers for libc-bin (2.42-0ubuntu3) ... 154s autopkgtest [23:15:15]: test girepository-tools: [----------------------- 154s + cd /tmp/autopkgtest.Jnk3nP/autopkgtest_tmp 154s + dpkg-architecture -qDEB_HOST_GNU_TYPE 154s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 154s + DEB_HOST_GNU_TYPE=x86_64-linux-gnu 154s + dpkg-architecture -qDEB_HOST_MULTIARCH 154s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 154s + DEB_HOST_MULTIARCH=x86_64-linux-gnu 154s + x86_64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 154s typelib: GLib-2.0 154s + x86_64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/x86_64-linux-gnu/gir-1.0/GLib-2.0.gir 154s + x86_64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 154s autopkgtest [23:15:15]: test girepository-tools: -----------------------] 155s girepository-tools PASS (superficial) 155s autopkgtest [23:15:16]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 155s autopkgtest [23:15:16]: test libgio-2.0-dev-bin: preparing testbed 173s Creating nova instance adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c from image adt/ubuntu-resolute-amd64-server-20251018.img (UUID dd697a48-b6cc-4a02-84bf-0f9f2fad5f89)... 196s autopkgtest [23:15:57]: testbed dpkg architecture: amd64 197s autopkgtest [23:15:58]: testbed apt version: 3.1.6ubuntu2 197s autopkgtest [23:15:58]: @@@@@@@@@@@@@@@@@@@@ test bed setup 197s autopkgtest [23:15:58]: testbed release detected to be: resolute 198s autopkgtest [23:15:59]: updating testbed package index (apt update) 198s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 198s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 198s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 198s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 198s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [54.3 kB] 198s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [431 kB] 198s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [18.2 kB] 198s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 198s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [65.5 kB] 198s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [108 kB] 198s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3208 B] 198s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [28.0 kB] 198s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [125 kB] 198s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [319 kB] 198s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [3088 B] 198s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [9188 B] 198s Fetched 1253 kB in 1s (2059 kB/s) 199s Reading package lists... 199s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 199s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 199s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 199s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 200s Reading package lists... 200s Reading package lists... 200s Building dependency tree... 200s Reading state information... 200s Calculating upgrade... 200s The following packages will be upgraded: 200s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 200s libpython3-stdlib python3 python3-minimal 200s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 200s Need to get 2751 kB of archives. 200s After this operation, 2048 B of additional disk space will be used. 200s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 200s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 200s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 200s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.8ubuntu1 [1140 kB] 201s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.8ubuntu1 [1438 kB] 201s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-1.0-1 amd64 1.86.0-6 [85.9 kB] 201s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-girepository-2.0 amd64 1.86.0-6 [25.3 kB] 201s dpkg-preconfigure: unable to re-open stdin: No such file or directory 201s Fetched 2751 kB in 1s (5192 kB/s) 201s (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 ... 78439 files and directories currently installed.) 201s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 201s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 201s Setting up python3-minimal (3.13.7-2) ... 201s (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 ... 78439 files and directories currently installed.) 201s Preparing to unpack .../0-python3_3.13.7-2_amd64.deb ... 201s running python pre-rtupdate hooks for python3.13... 201s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 201s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_amd64.deb ... 201s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 201s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_amd64.deb ... 201s Unpacking libapt-pkg7.0:amd64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 201s Preparing to unpack .../3-apt_3.1.8ubuntu1_amd64.deb ... 201s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 201s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_amd64.deb ... 201s Unpacking libgirepository-1.0-1:amd64 (1.86.0-6) over (1.84.0-1) ... 201s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_amd64.deb ... 201s Unpacking gir1.2-girepository-2.0:amd64 (1.86.0-6) over (1.84.0-1) ... 202s Setting up libgirepository-1.0-1:amd64 (1.86.0-6) ... 202s Setting up libapt-pkg7.0:amd64 (3.1.8ubuntu1) ... 202s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 202s Setting up apt (3.1.8ubuntu1) ... 202s Setting up python3 (3.13.7-2) ... 202s running python rtupdate hooks for python3.13... 202s running python post-rtupdate hooks for python3.13... 202s Setting up gir1.2-girepository-2.0:amd64 (1.86.0-6) ... 202s Processing triggers for man-db (2.13.1-1) ... 203s Processing triggers for libc-bin (2.42-0ubuntu3) ... 203s autopkgtest [23:16:04]: upgrading testbed (apt dist-upgrade and autopurge) 204s Reading package lists... 204s Building dependency tree... 204s Reading state information... 204s Calculating upgrade... 204s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 204s Reading package lists... 204s Building dependency tree... 204s Reading state information... 204s Solving dependencies... 204s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 204s autopkgtest [23:16:05]: rebooting testbed after setup commands that affected boot 221s Reading package lists... 221s Building dependency tree... 221s Reading state information... 221s Solving dependencies... 221s The following NEW packages will be installed: 221s libgio-2.0-dev-bin python3-packaging 221s 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 221s Need to get 181 kB of archives. 221s After this operation, 971 kB of additional disk space will be used. 221s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-packaging all 25.0-1 [52.8 kB] 221s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libgio-2.0-dev-bin amd64 2.86.0-2 [128 kB] 221s Fetched 181 kB in 0s (0 B/s) 221s Selecting previously unselected package python3-packaging. 221s (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 ... 78439 files and directories currently installed.) 221s Preparing to unpack .../python3-packaging_25.0-1_all.deb ... 221s Unpacking python3-packaging (25.0-1) ... 221s Selecting previously unselected package libgio-2.0-dev-bin. 221s Preparing to unpack .../libgio-2.0-dev-bin_2.86.0-2_amd64.deb ... 221s Unpacking libgio-2.0-dev-bin (2.86.0-2) ... 221s Setting up python3-packaging (25.0-1) ... 221s Setting up libgio-2.0-dev-bin (2.86.0-2) ... 221s Processing triggers for man-db (2.13.1-1) ... 224s autopkgtest [23:16:25]: test libgio-2.0-dev-bin: [----------------------- 224s + gdbus-codegen --help 224s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 224s [--c-namespace NAMESPACE] [--c-generate-object-manager] 224s [--c-generate-autocleanup {none,objects,all}] 224s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 224s [--generate-rst OUTFILES] [--pragma-once] 224s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 224s [--glib-min-required VERSION] 224s [--glib-max-allowed VERSION] 224s [--symbol-decorator SYMBOL_DECORATOR] 224s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 224s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 224s [--generate-c-code OUTFILES | --header | --body | 224s --interface-info-header | --interface-info-body] 224s [--output FILE | --output-directory OUTDIR] 224s FILE [FILE ...] 224s 224s D-Bus code and documentation generator 224s 224s positional arguments: 224s FILE D-Bus introspection XML file 224s 224s options: 224s -h, --help show this help message and exit 224s --interface-prefix PREFIX 224s String to strip from D-Bus interface names for code 224s and docs 224s --c-namespace NAMESPACE 224s The namespace to use for generated C code 224s --c-generate-object-manager 224s Generate a GDBusObjectManagerClient subclass when 224s generating C code 224s --c-generate-autocleanup {none,objects,all} 224s Generate autocleanup support 224s --generate-docbook OUTFILES 224s Generate Docbook in OUTFILES-org.Project.IFace.xml 224s --generate-md OUTFILES 224s Generate Markdown in OUTFILES-org.Project.IFace.md 224s --generate-rst OUTFILES 224s Generate reStructuredText in OUTFILES- 224s org.Project.IFace.rst 224s --pragma-once Use "pragma once" as the inclusion guard 224s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 224s Add annotation (may be used several times) 224s --glib-min-required VERSION 224s Minimum version of GLib to be supported by the 224s outputted code (default: 2.30) 224s --glib-max-allowed VERSION 224s Maximum version of GLib to be used by the outputted 224s code (default: current GLib version) 224s --symbol-decorator SYMBOL_DECORATOR 224s Macro used to decorate a symbol in the outputted 224s header, possibly to export symbols 224s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 224s Additional header required for decorator specified by 224s --symbol-decorator 224s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 224s Additional define required for decorator specified by 224s --symbol-decorator 224s --generate-c-code OUTFILES 224s Generate C code in OUTFILES.[ch] 224s --header Generate C headers 224s --body Generate C code 224s --interface-info-header 224s Generate GDBusInterfaceInfo C header 224s --interface-info-body 224s Generate GDBusInterfaceInfo C code 224s --output FILE Write output into the specified file 224s --output-directory OUTDIR 224s Location to output generated files 224s + glib-compile-resources --version 224s 2.86.0 224s + glib-genmarshal --version 224s glib-genmarshal version 2.86.0 224s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 224s You may redistribute copies of glib-genmarshal under the terms of 224s the GNU General Public License which can be found in the 224s GLib source package. Sources, examples and contact 224s information are available at http://www.gtk.org 224s + glib-gettextize --version 224s + glib-mkenums --version 224s /usr/bin/glib-gettextize (GNU glib) 2.86.0 224s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 224s This is free software; see the source for copying conditions. There is NO 224s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 224s Written by Ulrich Drepper 225s glib-mkenums version 2.86.0 225s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 225s You may redistribute copies of glib-mkenums under the terms of 225s the GNU General Public License which can be found in the 225s GLib source package. Sources, examples and contact 225s information are available at http://www.gtk.org 225s + gobject-query tree 225s + gtester --version 225s GObject 225s + gtester-report --version 225s gtester version 2.86.0 225s gtester-report (GLib utils) version 2.86.0. 225s autopkgtest [23:16:26]: test libgio-2.0-dev-bin: -----------------------] 225s libgio-2.0-dev-bin PASS (superficial) 225s autopkgtest [23:16:26]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 225s autopkgtest [23:16:26]: test libglib2.0-dev: preparing testbed 244s Creating nova instance adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c from image adt/ubuntu-resolute-amd64-server-20251018.img (UUID dd697a48-b6cc-4a02-84bf-0f9f2fad5f89)... 267s autopkgtest [23:17:08]: testbed dpkg architecture: amd64 267s autopkgtest [23:17:08]: testbed apt version: 3.1.6ubuntu2 267s autopkgtest [23:17:08]: @@@@@@@@@@@@@@@@@@@@ test bed setup 268s autopkgtest [23:17:09]: testbed release detected to be: resolute 268s autopkgtest [23:17:09]: updating testbed package index (apt update) 268s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 268s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 268s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 268s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 268s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [431 kB] 269s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [18.2 kB] 269s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [54.3 kB] 269s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 269s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [108 kB] 269s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [65.5 kB] 269s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3208 B] 269s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [28.0 kB] 269s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [125 kB] 269s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [319 kB] 269s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [9188 B] 269s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [3088 B] 269s Fetched 1253 kB in 1s (2240 kB/s) 269s Reading package lists... 270s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 270s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 270s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 270s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 271s Reading package lists... 271s Reading package lists... 271s Building dependency tree... 271s Reading state information... 271s Calculating upgrade... 271s The following packages will be upgraded: 271s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 271s libpython3-stdlib python3 python3-minimal 271s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 271s Need to get 2751 kB of archives. 271s After this operation, 2048 B of additional disk space will be used. 271s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 271s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 271s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 271s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.8ubuntu1 [1140 kB] 271s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.8ubuntu1 [1438 kB] 271s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-1.0-1 amd64 1.86.0-6 [85.9 kB] 271s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-girepository-2.0 amd64 1.86.0-6 [25.3 kB] 271s dpkg-preconfigure: unable to re-open stdin: No such file or directory 271s Fetched 2751 kB in 0s (8654 kB/s) 271s (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 ... 78439 files and directories currently installed.) 271s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 271s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 271s Setting up python3-minimal (3.13.7-2) ... 272s (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 ... 78439 files and directories currently installed.) 272s Preparing to unpack .../0-python3_3.13.7-2_amd64.deb ... 272s running python pre-rtupdate hooks for python3.13... 272s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 272s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_amd64.deb ... 272s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 272s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_amd64.deb ... 272s Unpacking libapt-pkg7.0:amd64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 272s Preparing to unpack .../3-apt_3.1.8ubuntu1_amd64.deb ... 272s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 272s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_amd64.deb ... 272s Unpacking libgirepository-1.0-1:amd64 (1.86.0-6) over (1.84.0-1) ... 272s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_amd64.deb ... 272s Unpacking gir1.2-girepository-2.0:amd64 (1.86.0-6) over (1.84.0-1) ... 272s Setting up libgirepository-1.0-1:amd64 (1.86.0-6) ... 272s Setting up libapt-pkg7.0:amd64 (3.1.8ubuntu1) ... 272s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 272s Setting up apt (3.1.8ubuntu1) ... 272s Setting up python3 (3.13.7-2) ... 272s running python rtupdate hooks for python3.13... 272s running python post-rtupdate hooks for python3.13... 272s Setting up gir1.2-girepository-2.0:amd64 (1.86.0-6) ... 272s Processing triggers for man-db (2.13.1-1) ... 273s Processing triggers for libc-bin (2.42-0ubuntu3) ... 273s autopkgtest [23:17:14]: upgrading testbed (apt dist-upgrade and autopurge) 274s Reading package lists... 274s Building dependency tree... 274s Reading state information... 274s Calculating upgrade... 274s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 274s Reading package lists... 274s Building dependency tree... 274s Reading state information... 274s Solving dependencies... 275s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 275s autopkgtest [23:17:16]: rebooting testbed after setup commands that affected boot 292s Reading package lists... 293s Building dependency tree... 293s Reading state information... 293s Solving dependencies... 293s The following NEW packages will be installed: 293s build-essential cpp cpp-15 cpp-15-x86-64-linux-gnu cpp-x86-64-linux-gnu g++ 293s g++-15 g++-15-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-15 293s gcc-15-x86-64-linux-gnu gcc-x86-64-linux-gnu gir1.2-glib-2.0-dev 293s girepository-tools libasan8 libblkid-dev libcc1-0 libffi-dev libgcc-15-dev 293s libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin 293s libglib2.0-dev libglib2.0-dev-bin libgomp1 libhwasan0 libisl23 libitm1 293s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 293s libpcre2-posix3 libpkgconf3 libquadmath0 libselinux1-dev libsepol-dev 293s libstdc++-15-dev libsysprof-capture-4-dev libtsan2 libubsan1 293s native-architecture pkgconf pkgconf-bin python3-packaging uuid-dev 293s zlib1g-dev 293s 0 upgraded, 51 newly installed, 0 to remove and 0 not upgraded. 293s Need to get 76.5 MB of archives. 293s After this operation, 273 MB of additional disk space will be used. 293s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libisl23 amd64 0.27-1 [685 kB] 293s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libmpc3 amd64 1.3.1-1build3 [57.0 kB] 293s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-15-x86-64-linux-gnu amd64 15.2.0-5ubuntu1 [12.9 MB] 293s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-15 amd64 15.2.0-5ubuntu1 [1028 B] 293s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [5746 B] 293s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp amd64 4:15.2.0-4ubuntu1 [22.4 kB] 293s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libcc1-0 amd64 15.2.0-5ubuntu1 [47.4 kB] 293s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libgomp1 amd64 15.2.0-5ubuntu1 [151 kB] 293s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libitm1 amd64 15.2.0-5ubuntu1 [29.3 kB] 293s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libasan8 amd64 15.2.0-5ubuntu1 [3071 kB] 293s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 liblsan0 amd64 15.2.0-5ubuntu1 [1360 kB] 294s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 libtsan2 amd64 15.2.0-5ubuntu1 [2757 kB] 294s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 libubsan1 amd64 15.2.0-5ubuntu1 [1210 kB] 294s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 libhwasan0 amd64 15.2.0-5ubuntu1 [1685 kB] 294s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libquadmath0 amd64 15.2.0-5ubuntu1 [153 kB] 294s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libgcc-15-dev amd64 15.2.0-5ubuntu1 [2863 kB] 294s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-15-x86-64-linux-gnu amd64 15.2.0-5ubuntu1 [25.4 MB] 294s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-15 amd64 15.2.0-5ubuntu1 [523 kB] 294s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [1208 B] 294s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc amd64 4:15.2.0-4ubuntu1 [5024 B] 294s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 libstdc++-15-dev amd64 15.2.0-5ubuntu1 [2573 kB] 294s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-15-x86-64-linux-gnu amd64 15.2.0-5ubuntu1 [14.4 MB] 295s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-15 amd64 15.2.0-5ubuntu1 [23.7 kB] 295s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [966 B] 295s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 g++ amd64 4:15.2.0-4ubuntu1 [1100 B] 295s Get:26 http://ftpmaster.internal/ubuntu resolute/main amd64 build-essential amd64 12.12ubuntu1 [5080 B] 295s Get:27 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-glib-2.0-dev amd64 2.86.0-2 [865 kB] 295s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 native-architecture all 0.2.6 [2140 B] 295s Get:29 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-2.0-0 amd64 2.86.0-2 [76.1 kB] 295s Get:30 http://ftpmaster.internal/ubuntu resolute/main amd64 girepository-tools amd64 2.86.0-2 [111 kB] 295s Get:31 http://ftpmaster.internal/ubuntu resolute/main amd64 libffi-dev amd64 3.5.2-1build1 [65.6 kB] 295s Get:32 http://ftpmaster.internal/ubuntu resolute/main amd64 uuid-dev amd64 2.41-4ubuntu4 [56.3 kB] 295s Get:33 http://ftpmaster.internal/ubuntu resolute/main amd64 libblkid-dev amd64 2.41-4ubuntu4 [244 kB] 295s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 libsepol-dev amd64 3.8.1-1 [406 kB] 295s Get:35 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-16-0 amd64 10.46-1 [243 kB] 295s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-32-0 amd64 10.46-1 [230 kB] 295s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-posix3 amd64 10.46-1 [7354 B] 295s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 libpcre2-dev amd64 10.46-1 [832 kB] 295s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 libselinux1-dev amd64 3.8.1-1build1 [180 kB] 295s Get:40 http://ftpmaster.internal/ubuntu resolute/main amd64 libmount-dev amd64 2.41-4ubuntu4 [36.2 kB] 295s Get:41 http://ftpmaster.internal/ubuntu resolute/main amd64 libsysprof-capture-4-dev amd64 48.0-2 [55.1 kB] 295s Get:42 http://ftpmaster.internal/ubuntu resolute/main amd64 libpkgconf3 amd64 1.8.1-4build1 [32.8 kB] 295s Get:43 http://ftpmaster.internal/ubuntu resolute/main amd64 pkgconf-bin amd64 1.8.1-4build1 [21.7 kB] 295s Get:44 http://ftpmaster.internal/ubuntu resolute/main amd64 pkgconf amd64 1.8.1-4build1 [16.8 kB] 295s Get:45 http://ftpmaster.internal/ubuntu resolute/main amd64 zlib1g-dev amd64 1:1.3.dfsg+really1.3.1-1ubuntu2 [898 kB] 295s Get:46 http://ftpmaster.internal/ubuntu resolute/main amd64 libgio-2.0-dev amd64 2.86.0-2 [1817 kB] 295s Get:47 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-packaging all 25.0-1 [52.8 kB] 295s Get:48 http://ftpmaster.internal/ubuntu resolute/main amd64 libgio-2.0-dev-bin amd64 2.86.0-2 [128 kB] 295s Get:49 http://ftpmaster.internal/ubuntu resolute/main amd64 libglib2.0-bin amd64 2.86.0-2 [99.4 kB] 295s Get:50 http://ftpmaster.internal/ubuntu resolute/main amd64 libglib2.0-dev-bin amd64 2.86.0-2 [18.2 kB] 295s Get:51 http://ftpmaster.internal/ubuntu resolute/main amd64 libglib2.0-dev amd64 2.86.0-2 [18.9 kB] 295s Fetched 76.5 MB in 2s (35.5 MB/s) 295s Selecting previously unselected package libisl23:amd64. 295s (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 ... 78439 files and directories currently installed.) 295s Preparing to unpack .../00-libisl23_0.27-1_amd64.deb ... 295s Unpacking libisl23:amd64 (0.27-1) ... 295s Selecting previously unselected package libmpc3:amd64. 295s Preparing to unpack .../01-libmpc3_1.3.1-1build3_amd64.deb ... 295s Unpacking libmpc3:amd64 (1.3.1-1build3) ... 295s Selecting previously unselected package cpp-15-x86-64-linux-gnu. 295s Preparing to unpack .../02-cpp-15-x86-64-linux-gnu_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking cpp-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package cpp-15. 295s Preparing to unpack .../03-cpp-15_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking cpp-15 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package cpp-x86-64-linux-gnu. 295s Preparing to unpack .../04-cpp-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 295s Unpacking cpp-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 295s Selecting previously unselected package cpp. 295s Preparing to unpack .../05-cpp_4%3a15.2.0-4ubuntu1_amd64.deb ... 295s Unpacking cpp (4:15.2.0-4ubuntu1) ... 295s Selecting previously unselected package libcc1-0:amd64. 295s Preparing to unpack .../06-libcc1-0_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libcc1-0:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libgomp1:amd64. 295s Preparing to unpack .../07-libgomp1_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libgomp1:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libitm1:amd64. 295s Preparing to unpack .../08-libitm1_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libitm1:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libasan8:amd64. 295s Preparing to unpack .../09-libasan8_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libasan8:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package liblsan0:amd64. 295s Preparing to unpack .../10-liblsan0_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking liblsan0:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libtsan2:amd64. 295s Preparing to unpack .../11-libtsan2_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libtsan2:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libubsan1:amd64. 295s Preparing to unpack .../12-libubsan1_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libubsan1:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libhwasan0:amd64. 295s Preparing to unpack .../13-libhwasan0_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libhwasan0:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libquadmath0:amd64. 295s Preparing to unpack .../14-libquadmath0_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libquadmath0:amd64 (15.2.0-5ubuntu1) ... 295s Selecting previously unselected package libgcc-15-dev:amd64. 295s Preparing to unpack .../15-libgcc-15-dev_15.2.0-5ubuntu1_amd64.deb ... 295s Unpacking libgcc-15-dev:amd64 (15.2.0-5ubuntu1) ... 296s Selecting previously unselected package gcc-15-x86-64-linux-gnu. 296s Preparing to unpack .../16-gcc-15-x86-64-linux-gnu_15.2.0-5ubuntu1_amd64.deb ... 296s Unpacking gcc-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 296s Selecting previously unselected package gcc-15. 296s Preparing to unpack .../17-gcc-15_15.2.0-5ubuntu1_amd64.deb ... 296s Unpacking gcc-15 (15.2.0-5ubuntu1) ... 296s Selecting previously unselected package gcc-x86-64-linux-gnu. 296s Preparing to unpack .../18-gcc-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 296s Unpacking gcc-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 296s Selecting previously unselected package gcc. 296s Preparing to unpack .../19-gcc_4%3a15.2.0-4ubuntu1_amd64.deb ... 296s Unpacking gcc (4:15.2.0-4ubuntu1) ... 296s Selecting previously unselected package libstdc++-15-dev:amd64. 296s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-5ubuntu1_amd64.deb ... 296s Unpacking libstdc++-15-dev:amd64 (15.2.0-5ubuntu1) ... 296s Selecting previously unselected package g++-15-x86-64-linux-gnu. 296s Preparing to unpack .../21-g++-15-x86-64-linux-gnu_15.2.0-5ubuntu1_amd64.deb ... 296s Unpacking g++-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 296s Selecting previously unselected package g++-15. 296s Preparing to unpack .../22-g++-15_15.2.0-5ubuntu1_amd64.deb ... 296s Unpacking g++-15 (15.2.0-5ubuntu1) ... 296s Selecting previously unselected package g++-x86-64-linux-gnu. 296s Preparing to unpack .../23-g++-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 296s Unpacking g++-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 296s Selecting previously unselected package g++. 296s Preparing to unpack .../24-g++_4%3a15.2.0-4ubuntu1_amd64.deb ... 296s Unpacking g++ (4:15.2.0-4ubuntu1) ... 296s Selecting previously unselected package build-essential. 296s Preparing to unpack .../25-build-essential_12.12ubuntu1_amd64.deb ... 296s Unpacking build-essential (12.12ubuntu1) ... 296s Selecting previously unselected package gir1.2-glib-2.0-dev:amd64. 296s Preparing to unpack .../26-gir1.2-glib-2.0-dev_2.86.0-2_amd64.deb ... 296s Unpacking gir1.2-glib-2.0-dev:amd64 (2.86.0-2) ... 296s Selecting previously unselected package native-architecture. 296s Preparing to unpack .../27-native-architecture_0.2.6_all.deb ... 296s Unpacking native-architecture (0.2.6) ... 296s Selecting previously unselected package libgirepository-2.0-0:amd64. 296s Preparing to unpack .../28-libgirepository-2.0-0_2.86.0-2_amd64.deb ... 296s Unpacking libgirepository-2.0-0:amd64 (2.86.0-2) ... 296s Selecting previously unselected package girepository-tools:amd64. 296s Preparing to unpack .../29-girepository-tools_2.86.0-2_amd64.deb ... 296s Unpacking girepository-tools:amd64 (2.86.0-2) ... 296s Selecting previously unselected package libffi-dev:amd64. 296s Preparing to unpack .../30-libffi-dev_3.5.2-1build1_amd64.deb ... 296s Unpacking libffi-dev:amd64 (3.5.2-1build1) ... 296s Selecting previously unselected package uuid-dev:amd64. 296s Preparing to unpack .../31-uuid-dev_2.41-4ubuntu4_amd64.deb ... 296s Unpacking uuid-dev:amd64 (2.41-4ubuntu4) ... 296s Selecting previously unselected package libblkid-dev:amd64. 296s Preparing to unpack .../32-libblkid-dev_2.41-4ubuntu4_amd64.deb ... 296s Unpacking libblkid-dev:amd64 (2.41-4ubuntu4) ... 296s Selecting previously unselected package libsepol-dev:amd64. 296s Preparing to unpack .../33-libsepol-dev_3.8.1-1_amd64.deb ... 296s Unpacking libsepol-dev:amd64 (3.8.1-1) ... 296s Selecting previously unselected package libpcre2-16-0:amd64. 296s Preparing to unpack .../34-libpcre2-16-0_10.46-1_amd64.deb ... 296s Unpacking libpcre2-16-0:amd64 (10.46-1) ... 296s Selecting previously unselected package libpcre2-32-0:amd64. 296s Preparing to unpack .../35-libpcre2-32-0_10.46-1_amd64.deb ... 296s Unpacking libpcre2-32-0:amd64 (10.46-1) ... 296s Selecting previously unselected package libpcre2-posix3:amd64. 296s Preparing to unpack .../36-libpcre2-posix3_10.46-1_amd64.deb ... 296s Unpacking libpcre2-posix3:amd64 (10.46-1) ... 296s Selecting previously unselected package libpcre2-dev:amd64. 296s Preparing to unpack .../37-libpcre2-dev_10.46-1_amd64.deb ... 296s Unpacking libpcre2-dev:amd64 (10.46-1) ... 296s Selecting previously unselected package libselinux1-dev:amd64. 296s Preparing to unpack .../38-libselinux1-dev_3.8.1-1build1_amd64.deb ... 296s Unpacking libselinux1-dev:amd64 (3.8.1-1build1) ... 296s Selecting previously unselected package libmount-dev:amd64. 296s Preparing to unpack .../39-libmount-dev_2.41-4ubuntu4_amd64.deb ... 296s Unpacking libmount-dev:amd64 (2.41-4ubuntu4) ... 296s Selecting previously unselected package libsysprof-capture-4-dev:amd64. 296s Preparing to unpack .../40-libsysprof-capture-4-dev_48.0-2_amd64.deb ... 296s Unpacking libsysprof-capture-4-dev:amd64 (48.0-2) ... 296s Selecting previously unselected package libpkgconf3:amd64. 296s Preparing to unpack .../41-libpkgconf3_1.8.1-4build1_amd64.deb ... 296s Unpacking libpkgconf3:amd64 (1.8.1-4build1) ... 296s Selecting previously unselected package pkgconf-bin. 296s Preparing to unpack .../42-pkgconf-bin_1.8.1-4build1_amd64.deb ... 296s Unpacking pkgconf-bin (1.8.1-4build1) ... 296s Selecting previously unselected package pkgconf:amd64. 296s Preparing to unpack .../43-pkgconf_1.8.1-4build1_amd64.deb ... 296s Unpacking pkgconf:amd64 (1.8.1-4build1) ... 296s Selecting previously unselected package zlib1g-dev:amd64. 296s Preparing to unpack .../44-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_amd64.deb ... 296s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 296s Selecting previously unselected package libgio-2.0-dev:amd64. 296s Preparing to unpack .../45-libgio-2.0-dev_2.86.0-2_amd64.deb ... 296s Unpacking libgio-2.0-dev:amd64 (2.86.0-2) ... 296s Selecting previously unselected package python3-packaging. 296s Preparing to unpack .../46-python3-packaging_25.0-1_all.deb ... 296s Unpacking python3-packaging (25.0-1) ... 296s Selecting previously unselected package libgio-2.0-dev-bin. 296s Preparing to unpack .../47-libgio-2.0-dev-bin_2.86.0-2_amd64.deb ... 296s Unpacking libgio-2.0-dev-bin (2.86.0-2) ... 296s Selecting previously unselected package libglib2.0-bin. 296s Preparing to unpack .../48-libglib2.0-bin_2.86.0-2_amd64.deb ... 296s Unpacking libglib2.0-bin (2.86.0-2) ... 296s Selecting previously unselected package libglib2.0-dev-bin. 296s Preparing to unpack .../49-libglib2.0-dev-bin_2.86.0-2_amd64.deb ... 296s Unpacking libglib2.0-dev-bin (2.86.0-2) ... 296s Selecting previously unselected package libglib2.0-dev:amd64. 296s Preparing to unpack .../50-libglib2.0-dev_2.86.0-2_amd64.deb ... 296s Unpacking libglib2.0-dev:amd64 (2.86.0-2) ... 296s Setting up native-architecture (0.2.6) ... 296s Setting up libgirepository-2.0-0:amd64 (2.86.0-2) ... 296s Setting up libglib2.0-bin (2.86.0-2) ... 296s Setting up libgomp1:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libffi-dev:amd64 (3.5.2-1build1) ... 296s Setting up libpcre2-16-0:amd64 (10.46-1) ... 296s Setting up libsysprof-capture-4-dev:amd64 (48.0-2) ... 296s Setting up libpcre2-32-0:amd64 (10.46-1) ... 296s Setting up python3-packaging (25.0-1) ... 296s Setting up libpkgconf3:amd64 (1.8.1-4build1) ... 296s Setting up uuid-dev:amd64 (2.41-4ubuntu4) ... 296s Setting up libquadmath0:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libmpc3:amd64 (1.3.1-1build3) ... 296s Setting up libsepol-dev:amd64 (3.8.1-1) ... 296s Setting up pkgconf-bin (1.8.1-4build1) ... 296s Setting up libubsan1:amd64 (15.2.0-5ubuntu1) ... 296s Setting up zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 296s Setting up libpcre2-posix3:amd64 (10.46-1) ... 296s Setting up gir1.2-glib-2.0-dev:amd64 (2.86.0-2) ... 296s Setting up libhwasan0:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libasan8:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libtsan2:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libisl23:amd64 (0.27-1) ... 296s Setting up libcc1-0:amd64 (15.2.0-5ubuntu1) ... 296s Setting up liblsan0:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libitm1:amd64 (15.2.0-5ubuntu1) ... 296s Setting up libblkid-dev:amd64 (2.41-4ubuntu4) ... 296s Setting up libgio-2.0-dev-bin (2.86.0-2) ... 297s Setting up girepository-tools:amd64 (2.86.0-2) ... 297s Setting up libgcc-15-dev:amd64 (15.2.0-5ubuntu1) ... 297s Setting up libpcre2-dev:amd64 (10.46-1) ... 297s Setting up libselinux1-dev:amd64 (3.8.1-1build1) ... 297s Setting up cpp-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 297s Setting up pkgconf:amd64 (1.8.1-4build1) ... 297s Setting up gcc-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 297s Setting up libstdc++-15-dev:amd64 (15.2.0-5ubuntu1) ... 297s Setting up cpp-15 (15.2.0-5ubuntu1) ... 297s Setting up libmount-dev:amd64 (2.41-4ubuntu4) ... 297s Setting up cpp-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 297s Setting up libglib2.0-dev-bin (2.86.0-2) ... 297s Setting up g++-15-x86-64-linux-gnu (15.2.0-5ubuntu1) ... 297s Setting up libgio-2.0-dev:amd64 (2.86.0-2) ... 297s Setting up gcc-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 297s Setting up gcc-15 (15.2.0-5ubuntu1) ... 297s Setting up cpp (4:15.2.0-4ubuntu1) ... 297s Setting up g++-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 297s Setting up g++-15 (15.2.0-5ubuntu1) ... 297s Setting up gcc (4:15.2.0-4ubuntu1) ... 297s Setting up g++ (4:15.2.0-4ubuntu1) ... 297s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 297s Setting up build-essential (12.12ubuntu1) ... 297s Processing triggers for install-info (7.1.1-1ubuntu1) ... 297s Processing triggers for libc-bin (2.42-0ubuntu3) ... 297s Processing triggers for man-db (2.13.1-1) ... 299s Processing triggers for libglib2.0-0t64:amd64 (2.86.0-2) ... 299s No schema files found: doing nothing. 299s Setting up libglib2.0-dev:amd64 (2.86.0-2) ... 303s autopkgtest [23:17:44]: test libglib2.0-dev: [----------------------- 303s + debian/tests/build 303s + mode=dynamic 303s + getopt -o --long static -n debian/tests/build -- 303s + getopt_temp= -- 303s + eval set -- -- 303s + set -- -- 303s + true 303s + shift 303s + break 303s + mktemp -d 303s + WORKDIR=/tmp/tmp.HcZC1AK2IT 303s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 303s + cd /tmp/tmp.HcZC1AK2IT 303s + [ -n ] 303s + CROSS_COMPILE= 303s + cat 303s + cat 303s + cat 303s + cat 303s + cat 303s + cat 303s + cflags= 303s + pcflags= 303s + packages=glib-2.0 303s + pkg-config --cflags --libs glib-2.0 303s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 303s build (glib, dynamic): OK 303s run (glib, dynamic): OK 303s + echo build (glib, dynamic): OK 303s + [ -x glib-dynamic ] 303s + foo=bar ./glib-dynamic 303s + echo run (glib, dynamic): OK 303s + cflags= 303s + pcflags= 303s + packages=gobject-2.0 303s + pkg-config --cflags --libs gobject-2.0 303s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 303s build (gobject, dynamic): OK 303s + echo build (gobject, dynamic): OK 303s + [ -x gobject-dynamic ] 303s + foo=bar ./gobject-dynamic 303s + echo run (gobject, dynamic): OK 303s run (gobject, dynamic): OK 303s + cflags= 303s + pcflags= 303s + packages=gio-2.0 303s + pkg-config --cflags --libs gio-2.0 303s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 303s + echo build (gio, dynamic): OK 303s + [ -x gio-dynamic ] 303s + foo=bar ./gio-dynamic 303s build (gio, dynamic): OK 303s + echo run (gio, dynamic): OK 303s + cflags= 303s + pcflags= 303s + packages=gio-unix-2.0 303s + pkg-config --cflags --libs gio-unix-2.0 303s run (gio, dynamic): OK 303s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 303s build (gio-unix, dynamic): OK 303s + echo build (gio-unix, dynamic): OK 303s + [ -x gio-unix-dynamic ] 303s + foo=bar ./gio-unix-dynamic 303s + echo run (gio-unix, dynamic): OK 303s + cflags= 303s + pcflags= 303s + packages=gmodule-2.0 303s + pkg-config --cflags --libs gmodule-2.0 303s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 303s run (gio-unix, dynamic): OK 303s + echo build (gmodule, dynamic): OK 303s + [ -x gmodule-dynamic ] 303s + foo=bar ./gmodule-dynamic 303s build (gmodule, dynamic): OK 303s + echo run (gmodule, dynamic): OK 303s + cflags= 303s + pcflags= 303s + packages=gthread-2.0 303s run (gmodule, dynamic): OK 303s + pkg-config --cflags --libs gthread-2.0 303s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 303s + echo build (gthread, dynamic): OK 303s + [ -x gthread-dynamic ] 303s + foo=bar ./gthread-dynamic 303s build (gthread, dynamic): OK 303s + echo run (gthread, dynamic): OK 303s + rm -rf /tmp/tmp.HcZC1AK2IT 303s run (gthread, dynamic): OK 303s + debian/tests/build-static 303s + mode=dynamic 303s + getopt -o --long static -n debian/tests/build -- --static 303s + getopt_temp= --static -- 303s + eval set -- --static -- 303s + set -- --static -- 303s + true 303s + mode=static 303s + shift 303s + continue 303s + true 303s + shift 303s + break 303s + mktemp -d 303s + WORKDIR=/tmp/tmp.4unXevnKwB 303s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 303s + cd /tmp/tmp.4unXevnKwB 303s + [ -n ] 303s + CROSS_COMPILE= 303s + cat 303s + cat 303s + cat 303s + cat 303s + cat 303s + cat 303s + cflags= 303s + pcflags= 303s + packages=glib-2.0 303s + cflags=-static 303s + pcflags=--static 303s + pkg-config --static --cflags --libs glib-2.0 303s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 303s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 303s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 303s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 303s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s + echo build (glib, static): OK 304s + [ -x glib-static ] 304s + foo=bar ./glib-static 304s build (glib, static): OK 304s + echo run (glib, static): OK 304s + cflags= 304s + pcflags= 304s + packages=gobject-2.0 304s + cflags=-static 304s + pcflags=--static 304s + pkg-config --static --cflags --libs gobject-2.0 304s run (glib, static): OK 304s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 304s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 304s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s + echo build (gobject, static): OK 304s + [ -x gobject-static ] 304s + foo=bar ./gobject-static 304s build (gobject, static): OK 304s run (gobject, static): OK 304s + echo run (gobject, static): OK 304s + cflags= 304s + pcflags= 304s + packages=gio-2.0 304s + cflags=-static 304s + pcflags=--static 304s + continue 304s + cflags= 304s + pcflags= 304s + packages=gio-unix-2.0 304s + cflags=-static 304s + pcflags=--static 304s + continue 304s + cflags= 304s + pcflags= 304s + packages=gmodule-2.0 304s + cflags=-static 304s + pcflags=--static 304s + pkg-config --static --cflags --libs gmodule-2.0 304s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 304s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 304s (.text+0x5e7): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 304s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s build (gmodule, static): OK 304s + echo build (gmodule, static): OK 304s + [ -x gmodule-static ] 304s + foo=bar ./gmodule-static 304s + echo run (gmodule, static): OK 304s + cflags= 304s + pcflags= 304s + packages=gthread-2.0 304s + cflags=-static 304s + pcflags=--static 304s + pkg-config --static --cflags --libs gthread-2.0 304s run (gmodule, static): OK 304s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 304s /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 304s (.text+0xed): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: (.text+0x2b6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s /usr/bin/ld: (.text+0x137): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 304s + echo build (gthread, static): OK 304s + [ -x gthread-static ] 304s + foo=bar ./gthread-static 304s build (gthread, static): OK 304s run (gthread, static): OK 304s + echo run (gthread, static): OK 304s + rm -rf /tmp/tmp.4unXevnKwB 304s + debian/tests/girepository-tools 304s + cd /tmp/autopkgtest.Jnk3nP/autopkgtest_tmp 304s + dpkg-architecture -qDEB_HOST_GNU_TYPE 304s + DEB_HOST_GNU_TYPE=x86_64-linux-gnu 304s + dpkg-architecture -qDEB_HOST_MULTIARCH 304s + DEB_HOST_MULTIARCH=x86_64-linux-gnu 304s + x86_64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 304s + x86_64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/x86_64-linux-gnu/gir-1.0/GLib-2.0.gir 304s typelib: GLib-2.0 304s + x86_64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 304s + debian/tests/libgio-2.0-dev-bin 304s + gdbus-codegen --help 304s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 304s [--c-namespace NAMESPACE] [--c-generate-object-manager] 304s [--c-generate-autocleanup {none,objects,all}] 304s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 304s [--generate-rst OUTFILES] [--pragma-once] 304s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 304s [--glib-min-required VERSION] 304s [--glib-max-allowed VERSION] 304s [--symbol-decorator SYMBOL_DECORATOR] 304s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 304s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 304s [--generate-c-code OUTFILES | --header | --body | 304s --interface-info-header | --interface-info-body] 304s [--output FILE | --output-directory OUTDIR] 304s FILE [FILE ...] 304s 304s D-Bus code and documentation generator 304s 304s positional arguments: 304s FILE D-Bus introspection XML file 304s 304s options: 304s -h, --help show this help message and exit 304s --interface-prefix PREFIX 304s String to strip from D-Bus interface names for code 304s and docs 304s --c-namespace NAMESPACE 304s The namespace to use for generated C code 304s --c-generate-object-manager 304s Generate a GDBusObjectManagerClient subclass when 304s generating C code 304s --c-generate-autocleanup {none,objects,all} 304s Generate autocleanup support 304s --generate-docbook OUTFILES 304s Generate Docbook in OUTFILES-org.Project.IFace.xml 304s --generate-md OUTFILES 304s Generate Markdown in OUTFILES-org.Project.IFace.md 304s --generate-rst OUTFILES 304s Generate reStructuredText in OUTFILES- 304s org.Project.IFace.rst 304s --pragma-once Use "pragma once" as the inclusion guard 304s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 304s Add annotation (may be used several times) 304s --glib-min-required VERSION 304s Minimum version of GLib to be supported by the 304s outputted code (default: 2.30) 304s --glib-max-allowed VERSION 304s Maximum version of GLib to be used by the outputted 304s code (default: current GLib version) 304s --symbol-decorator SYMBOL_DECORATOR 304s Macro used to decorate a symbol in the outputted 304s header, possibly to export symbols 304s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 304s Additional header required for decorator specified by 304s --symbol-decorator 304s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 304s Additional define required for decorator specified by 304s --symbol-decorator 304s --generate-c-code OUTFILES 304s Generate C code in OUTFILES.[ch] 304s --header Generate C headers 304s --body Generate C code 304s --interface-info-header 304s Generate GDBusInterfaceInfo C header 304s --interface-info-body 304s Generate GDBusInterfaceInfo C code 304s --output FILE Write output into the specified file 304s --output-directory OUTDIR 304s Location to output generated files 304s + glib-compile-resources --version 304s + glib-genmarshal --version 304s 2.86.0 304s glib-genmarshal version 2.86.0 304s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 304s You may redistribute copies of glib-genmarshal under the terms of 304s the GNU General Public License which can be found in the 304s GLib source package. Sources, examples and contact 304s information are available at http://www.gtk.org 304s + glib-gettextize --version 304s + glib-mkenums --version 304s /usr/bin/glib-gettextize (GNU glib) 2.86.0 304s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 304s This is free software; see the source for copying conditions. There is NO 304s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 304s Written by Ulrich Drepper 304s glib-mkenums version 2.86.0 304s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 304s You may redistribute copies of glib-mkenums under the terms of 304s the GNU General Public License which can be found in the 304s GLib source package. Sources, examples and contact 304s information are available at http://www.gtk.org 304s + gobject-query tree 304s + gtester --version 304s GObject 304s gtester version 2.86.0 304s + gtester-report --version 304s gtester-report (GLib utils) version 2.86.0. 304s + cd /tmp/autopkgtest.Jnk3nP/autopkgtest_tmp 304s + dpkg-architecture -qDEB_HOST_MULTIARCH 304s + DEB_HOST_MULTIARCH=x86_64-linux-gnu 304s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 304s + gi-compile-repository -o GLib.typelib /usr/lib/x86_64-linux-gnu/gir-1.0/GLib-2.0.gir 304s typelib: GLib-2.0 304s + gi-decompile-typelib -o GLib.gir GLib.typelib 304s autopkgtest [23:17:45]: test libglib2.0-dev: -----------------------] 305s libglib2.0-dev PASS (superficial) 305s autopkgtest [23:17:46]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 305s autopkgtest [23:17:46]: test installed-tests: preparing testbed 311s Creating nova instance adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c from image adt/ubuntu-resolute-amd64-server-20251018.img (UUID dd697a48-b6cc-4a02-84bf-0f9f2fad5f89)... 333s autopkgtest [23:18:14]: testbed dpkg architecture: amd64 333s autopkgtest [23:18:14]: testbed apt version: 3.1.6ubuntu2 333s autopkgtest [23:18:14]: @@@@@@@@@@@@@@@@@@@@ test bed setup 333s autopkgtest [23:18:14]: testbed release detected to be: resolute 334s autopkgtest [23:18:15]: updating testbed package index (apt update) 334s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 334s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 334s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 334s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 334s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 334s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [18.2 kB] 334s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [54.3 kB] 334s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [431 kB] 334s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [65.5 kB] 335s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [108 kB] 335s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [28.0 kB] 335s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3208 B] 335s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [319 kB] 335s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [125 kB] 335s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [9188 B] 335s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [3088 B] 335s Fetched 1253 kB in 1s (2214 kB/s) 335s Reading package lists... 336s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 336s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 336s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 336s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 336s Reading package lists... 336s Reading package lists... 336s Building dependency tree... 336s Reading state information... 337s Calculating upgrade... 337s The following packages will be upgraded: 337s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 337s libpython3-stdlib python3 python3-minimal 337s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 337s Need to get 2751 kB of archives. 337s After this operation, 2048 B of additional disk space will be used. 337s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 337s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 337s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 337s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.8ubuntu1 [1140 kB] 337s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.8ubuntu1 [1438 kB] 337s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-1.0-1 amd64 1.86.0-6 [85.9 kB] 337s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-girepository-2.0 amd64 1.86.0-6 [25.3 kB] 337s dpkg-preconfigure: unable to re-open stdin: No such file or directory 337s Fetched 2751 kB in 0s (6943 kB/s) 338s (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 ... 78439 files and directories currently installed.) 338s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 338s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 338s Setting up python3-minimal (3.13.7-2) ... 338s (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 ... 78439 files and directories currently installed.) 338s Preparing to unpack .../0-python3_3.13.7-2_amd64.deb ... 338s running python pre-rtupdate hooks for python3.13... 338s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 338s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_amd64.deb ... 338s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 338s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_amd64.deb ... 338s Unpacking libapt-pkg7.0:amd64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 338s Preparing to unpack .../3-apt_3.1.8ubuntu1_amd64.deb ... 338s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 338s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_amd64.deb ... 338s Unpacking libgirepository-1.0-1:amd64 (1.86.0-6) over (1.84.0-1) ... 338s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_amd64.deb ... 338s Unpacking gir1.2-girepository-2.0:amd64 (1.86.0-6) over (1.84.0-1) ... 338s Setting up libgirepository-1.0-1:amd64 (1.86.0-6) ... 338s Setting up libapt-pkg7.0:amd64 (3.1.8ubuntu1) ... 338s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 338s Setting up apt (3.1.8ubuntu1) ... 338s Setting up python3 (3.13.7-2) ... 338s running python rtupdate hooks for python3.13... 338s running python post-rtupdate hooks for python3.13... 338s Setting up gir1.2-girepository-2.0:amd64 (1.86.0-6) ... 338s Processing triggers for man-db (2.13.1-1) ... 339s Processing triggers for libc-bin (2.42-0ubuntu3) ... 339s autopkgtest [23:18:20]: upgrading testbed (apt dist-upgrade and autopurge) 340s Reading package lists... 340s Building dependency tree... 340s Reading state information... 340s Calculating upgrade... 340s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 340s Reading package lists... 340s Building dependency tree... 340s Reading state information... 340s Solving dependencies... 341s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 341s autopkgtest [23:18:22]: rebooting testbed after setup commands that affected boot 357s Reading package lists... 357s Building dependency tree... 357s Reading state information... 357s Solving dependencies... 357s The following NEW packages will be installed: 357s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 357s gnome-desktop-testing libdrm-amdgpu1 libdrm-intel1 libfontenc1 libgbm1 357s libgio-2.0-dev-bin libgirepository-2.0-0 libgl1 libgl1-mesa-dri 357s libglib2.0-bin libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 357s libglx0 libice6 libpciaccess0 libpixman-1-0 libsm6 libvulkan1 libx11-xcb1 357s libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 357s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 357s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 357s native-architecture python3-dbusmock python3-packaging tzdata-legacy 357s x11-common x11-xkb-utils xserver-common xvfb 357s 0 upgraded, 51 newly installed, 0 to remove and 0 not upgraded. 357s Need to get 18.1 MB of archives. 357s After this operation, 86.6 MB of additional disk space will be used. 357s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 dbus-x11 amd64 1.16.2-2ubuntu2 [23.3 kB] 357s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 desktop-file-utils amd64 0.28-1 [54.5 kB] 357s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-glib-2.0-dev amd64 2.86.0-2 [865 kB] 358s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 native-architecture all 0.2.6 [2140 B] 358s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-2.0-0 amd64 2.86.0-2 [76.1 kB] 358s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 girepository-tools amd64 2.86.0-2 [111 kB] 358s Get:7 http://ftpmaster.internal/ubuntu resolute/universe amd64 gnome-desktop-testing amd64 2021.1-4 [16.8 kB] 358s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm-amdgpu1 amd64 2.4.125-1 [21.6 kB] 358s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libpciaccess0 amd64 0.18.1-1ubuntu2 [19.0 kB] 358s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm-intel1 amd64 2.4.125-1 [64.9 kB] 358s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 libfontenc1 amd64 1:1.1.8-1build1 [14.0 kB] 358s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 libx11-xcb1 amd64 2:1.8.12-1build1 [8044 B] 358s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-dri3-0 amd64 1.17.0-2build1 [8036 B] 358s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-present0 amd64 1.17.0-2build1 [6446 B] 358s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-randr0 amd64 1.17.0-2build1 [19.7 kB] 358s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-sync1 amd64 1.17.0-2build1 [10.1 kB] 358s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-xfixes0 amd64 1.17.0-2build1 [11.1 kB] 358s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libxshmfence1 amd64 1.3.3-1 [5262 B] 358s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 mesa-libgallium amd64 25.2.3-1ubuntu1 [11.1 MB] 358s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 libgbm1 amd64 25.2.3-1ubuntu1 [34.0 kB] 358s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-packaging all 25.0-1 [52.8 kB] 358s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 libgio-2.0-dev-bin amd64 2.86.0-2 [128 kB] 358s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 libvulkan1 amd64 1.4.321.0-1 [154 kB] 358s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 libgl1-mesa-dri amd64 25.2.3-1ubuntu1 [36.9 kB] 358s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 libglib2.0-bin amd64 2.86.0-2 [99.4 kB] 358s Get:26 http://ftpmaster.internal/ubuntu resolute/main amd64 libglib2.0-dev-bin amd64 2.86.0-2 [18.2 kB] 358s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-dbusmock all 0.37.1-1 [90.7 kB] 358s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 tzdata-legacy all 2025b-3ubuntu1 [99.3 kB] 358s Get:29 http://ftpmaster.internal/ubuntu resolute/universe amd64 libglib2.0-tests amd64 2.86.0-2 [2332 kB] 358s Get:30 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-glx0 amd64 1.17.0-2build1 [27.6 kB] 358s Get:31 http://ftpmaster.internal/ubuntu resolute/main amd64 libxcb-shm0 amd64 1.17.0-2build1 [6120 B] 358s Get:32 http://ftpmaster.internal/ubuntu resolute/main amd64 libxxf86vm1 amd64 1:1.1.4-1build4 [9282 B] 358s Get:33 http://ftpmaster.internal/ubuntu resolute/main amd64 libglx-mesa0 amd64 25.2.3-1ubuntu1 [110 kB] 358s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 x11-common all 1:7.7+24ubuntu1 [22.4 kB] 358s Get:35 http://ftpmaster.internal/ubuntu resolute/main amd64 libice6 amd64 2:1.1.1-1 [44.1 kB] 358s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 libpixman-1-0 amd64 0.44.0-3 [427 kB] 358s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 libsm6 amd64 2:1.2.6-1 [16.4 kB] 358s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 libxt6t64 amd64 1:1.2.1-1.3 [173 kB] 358s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 libxmu6 amd64 2:1.1.3-3build3 [50.8 kB] 358s Get:40 http://ftpmaster.internal/ubuntu resolute/main amd64 libxpm4 amd64 1:3.5.17-1build2 [36.5 kB] 358s Get:41 http://ftpmaster.internal/ubuntu resolute/main amd64 libxaw7 amd64 2:1.0.16-1 [207 kB] 358s Get:42 http://ftpmaster.internal/ubuntu resolute/main amd64 libxfont2 amd64 1:2.0.6-1build1 [93.0 kB] 358s Get:43 http://ftpmaster.internal/ubuntu resolute/main amd64 libxkbfile1 amd64 1:1.1.0-1build4 [70.0 kB] 358s Get:44 http://ftpmaster.internal/ubuntu resolute/main amd64 libxrender1 amd64 1:0.9.12-1 [19.8 kB] 358s Get:45 http://ftpmaster.internal/ubuntu resolute/main amd64 libxrandr2 amd64 2:1.5.4-1 [19.6 kB] 358s Get:46 http://ftpmaster.internal/ubuntu resolute/main amd64 x11-xkb-utils amd64 7.7+9 [169 kB] 358s Get:47 http://ftpmaster.internal/ubuntu resolute/main amd64 xserver-common all 2:21.1.18-1ubuntu1 [34.6 kB] 358s Get:48 http://ftpmaster.internal/ubuntu resolute/main amd64 libglvnd0 amd64 1.7.0-1build2 [65.1 kB] 358s Get:49 http://ftpmaster.internal/ubuntu resolute/main amd64 libglx0 amd64 1.7.0-1build2 [40.3 kB] 358s Get:50 http://ftpmaster.internal/ubuntu resolute/main amd64 libgl1 amd64 1.7.0-1build2 [101 kB] 358s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 xvfb amd64 2:21.1.18-1ubuntu1 [883 kB] 359s Fetched 18.1 MB in 1s (15.8 MB/s) 359s Selecting previously unselected package dbus-x11. 359s (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 ... 78439 files and directories currently installed.) 359s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_amd64.deb ... 359s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 359s Selecting previously unselected package desktop-file-utils. 359s Preparing to unpack .../01-desktop-file-utils_0.28-1_amd64.deb ... 359s Unpacking desktop-file-utils (0.28-1) ... 359s Selecting previously unselected package gir1.2-glib-2.0-dev:amd64. 359s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.0-2_amd64.deb ... 359s Unpacking gir1.2-glib-2.0-dev:amd64 (2.86.0-2) ... 359s Selecting previously unselected package native-architecture. 359s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 359s Unpacking native-architecture (0.2.6) ... 359s Selecting previously unselected package libgirepository-2.0-0:amd64. 359s Preparing to unpack .../04-libgirepository-2.0-0_2.86.0-2_amd64.deb ... 359s Unpacking libgirepository-2.0-0:amd64 (2.86.0-2) ... 359s Selecting previously unselected package girepository-tools:amd64. 359s Preparing to unpack .../05-girepository-tools_2.86.0-2_amd64.deb ... 359s Unpacking girepository-tools:amd64 (2.86.0-2) ... 359s Selecting previously unselected package gnome-desktop-testing. 359s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_amd64.deb ... 359s Unpacking gnome-desktop-testing (2021.1-4) ... 359s Selecting previously unselected package libdrm-amdgpu1:amd64. 359s Preparing to unpack .../07-libdrm-amdgpu1_2.4.125-1_amd64.deb ... 359s Unpacking libdrm-amdgpu1:amd64 (2.4.125-1) ... 359s Selecting previously unselected package libpciaccess0:amd64. 359s Preparing to unpack .../08-libpciaccess0_0.18.1-1ubuntu2_amd64.deb ... 359s Unpacking libpciaccess0:amd64 (0.18.1-1ubuntu2) ... 359s Selecting previously unselected package libdrm-intel1:amd64. 359s Preparing to unpack .../09-libdrm-intel1_2.4.125-1_amd64.deb ... 359s Unpacking libdrm-intel1:amd64 (2.4.125-1) ... 359s Selecting previously unselected package libfontenc1:amd64. 359s Preparing to unpack .../10-libfontenc1_1%3a1.1.8-1build1_amd64.deb ... 359s Unpacking libfontenc1:amd64 (1:1.1.8-1build1) ... 359s Selecting previously unselected package libx11-xcb1:amd64. 359s Preparing to unpack .../11-libx11-xcb1_2%3a1.8.12-1build1_amd64.deb ... 359s Unpacking libx11-xcb1:amd64 (2:1.8.12-1build1) ... 359s Selecting previously unselected package libxcb-dri3-0:amd64. 359s Preparing to unpack .../12-libxcb-dri3-0_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-dri3-0:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxcb-present0:amd64. 359s Preparing to unpack .../13-libxcb-present0_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-present0:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxcb-randr0:amd64. 359s Preparing to unpack .../14-libxcb-randr0_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-randr0:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxcb-sync1:amd64. 359s Preparing to unpack .../15-libxcb-sync1_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-sync1:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxcb-xfixes0:amd64. 359s Preparing to unpack .../16-libxcb-xfixes0_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-xfixes0:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxshmfence1:amd64. 359s Preparing to unpack .../17-libxshmfence1_1.3.3-1_amd64.deb ... 359s Unpacking libxshmfence1:amd64 (1.3.3-1) ... 359s Selecting previously unselected package mesa-libgallium:amd64. 359s Preparing to unpack .../18-mesa-libgallium_25.2.3-1ubuntu1_amd64.deb ... 359s Unpacking mesa-libgallium:amd64 (25.2.3-1ubuntu1) ... 359s Selecting previously unselected package libgbm1:amd64. 359s Preparing to unpack .../19-libgbm1_25.2.3-1ubuntu1_amd64.deb ... 359s Unpacking libgbm1:amd64 (25.2.3-1ubuntu1) ... 359s Selecting previously unselected package python3-packaging. 359s Preparing to unpack .../20-python3-packaging_25.0-1_all.deb ... 359s Unpacking python3-packaging (25.0-1) ... 359s Selecting previously unselected package libgio-2.0-dev-bin. 359s Preparing to unpack .../21-libgio-2.0-dev-bin_2.86.0-2_amd64.deb ... 359s Unpacking libgio-2.0-dev-bin (2.86.0-2) ... 359s Selecting previously unselected package libvulkan1:amd64. 359s Preparing to unpack .../22-libvulkan1_1.4.321.0-1_amd64.deb ... 359s Unpacking libvulkan1:amd64 (1.4.321.0-1) ... 359s Selecting previously unselected package libgl1-mesa-dri:amd64. 359s Preparing to unpack .../23-libgl1-mesa-dri_25.2.3-1ubuntu1_amd64.deb ... 359s Unpacking libgl1-mesa-dri:amd64 (25.2.3-1ubuntu1) ... 359s Selecting previously unselected package libglib2.0-bin. 359s Preparing to unpack .../24-libglib2.0-bin_2.86.0-2_amd64.deb ... 359s Unpacking libglib2.0-bin (2.86.0-2) ... 359s Selecting previously unselected package libglib2.0-dev-bin. 359s Preparing to unpack .../25-libglib2.0-dev-bin_2.86.0-2_amd64.deb ... 359s Unpacking libglib2.0-dev-bin (2.86.0-2) ... 359s Selecting previously unselected package python3-dbusmock. 359s Preparing to unpack .../26-python3-dbusmock_0.37.1-1_all.deb ... 359s Unpacking python3-dbusmock (0.37.1-1) ... 359s Selecting previously unselected package tzdata-legacy. 359s Preparing to unpack .../27-tzdata-legacy_2025b-3ubuntu1_all.deb ... 359s Unpacking tzdata-legacy (2025b-3ubuntu1) ... 359s Selecting previously unselected package libglib2.0-tests. 359s Preparing to unpack .../28-libglib2.0-tests_2.86.0-2_amd64.deb ... 359s Unpacking libglib2.0-tests (2.86.0-2) ... 359s Selecting previously unselected package libxcb-glx0:amd64. 359s Preparing to unpack .../29-libxcb-glx0_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-glx0:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxcb-shm0:amd64. 359s Preparing to unpack .../30-libxcb-shm0_1.17.0-2build1_amd64.deb ... 359s Unpacking libxcb-shm0:amd64 (1.17.0-2build1) ... 359s Selecting previously unselected package libxxf86vm1:amd64. 359s Preparing to unpack .../31-libxxf86vm1_1%3a1.1.4-1build4_amd64.deb ... 359s Unpacking libxxf86vm1:amd64 (1:1.1.4-1build4) ... 359s Selecting previously unselected package libglx-mesa0:amd64. 359s Preparing to unpack .../32-libglx-mesa0_25.2.3-1ubuntu1_amd64.deb ... 359s Unpacking libglx-mesa0:amd64 (25.2.3-1ubuntu1) ... 359s Selecting previously unselected package x11-common. 359s Preparing to unpack .../33-x11-common_1%3a7.7+24ubuntu1_all.deb ... 359s Unpacking x11-common (1:7.7+24ubuntu1) ... 359s Selecting previously unselected package libice6:amd64. 359s Preparing to unpack .../34-libice6_2%3a1.1.1-1_amd64.deb ... 359s Unpacking libice6:amd64 (2:1.1.1-1) ... 359s Selecting previously unselected package libpixman-1-0:amd64. 359s Preparing to unpack .../35-libpixman-1-0_0.44.0-3_amd64.deb ... 359s Unpacking libpixman-1-0:amd64 (0.44.0-3) ... 359s Selecting previously unselected package libsm6:amd64. 359s Preparing to unpack .../36-libsm6_2%3a1.2.6-1_amd64.deb ... 359s Unpacking libsm6:amd64 (2:1.2.6-1) ... 359s Selecting previously unselected package libxt6t64:amd64. 359s Preparing to unpack .../37-libxt6t64_1%3a1.2.1-1.3_amd64.deb ... 359s Unpacking libxt6t64:amd64 (1:1.2.1-1.3) ... 359s Selecting previously unselected package libxmu6:amd64. 359s Preparing to unpack .../38-libxmu6_2%3a1.1.3-3build3_amd64.deb ... 359s Unpacking libxmu6:amd64 (2:1.1.3-3build3) ... 359s Selecting previously unselected package libxpm4:amd64. 359s Preparing to unpack .../39-libxpm4_1%3a3.5.17-1build2_amd64.deb ... 359s Unpacking libxpm4:amd64 (1:3.5.17-1build2) ... 359s Selecting previously unselected package libxaw7:amd64. 359s Preparing to unpack .../40-libxaw7_2%3a1.0.16-1_amd64.deb ... 359s Unpacking libxaw7:amd64 (2:1.0.16-1) ... 359s Selecting previously unselected package libxfont2:amd64. 359s Preparing to unpack .../41-libxfont2_1%3a2.0.6-1build1_amd64.deb ... 359s Unpacking libxfont2:amd64 (1:2.0.6-1build1) ... 359s Selecting previously unselected package libxkbfile1:amd64. 359s Preparing to unpack .../42-libxkbfile1_1%3a1.1.0-1build4_amd64.deb ... 359s Unpacking libxkbfile1:amd64 (1:1.1.0-1build4) ... 359s Selecting previously unselected package libxrender1:amd64. 359s Preparing to unpack .../43-libxrender1_1%3a0.9.12-1_amd64.deb ... 359s Unpacking libxrender1:amd64 (1:0.9.12-1) ... 359s Selecting previously unselected package libxrandr2:amd64. 359s Preparing to unpack .../44-libxrandr2_2%3a1.5.4-1_amd64.deb ... 359s Unpacking libxrandr2:amd64 (2:1.5.4-1) ... 359s Selecting previously unselected package x11-xkb-utils. 360s Preparing to unpack .../45-x11-xkb-utils_7.7+9_amd64.deb ... 360s Unpacking x11-xkb-utils (7.7+9) ... 360s Selecting previously unselected package xserver-common. 360s Preparing to unpack .../46-xserver-common_2%3a21.1.18-1ubuntu1_all.deb ... 360s Unpacking xserver-common (2:21.1.18-1ubuntu1) ... 360s Selecting previously unselected package libglvnd0:amd64. 360s Preparing to unpack .../47-libglvnd0_1.7.0-1build2_amd64.deb ... 360s Unpacking libglvnd0:amd64 (1.7.0-1build2) ... 360s Selecting previously unselected package libglx0:amd64. 360s Preparing to unpack .../48-libglx0_1.7.0-1build2_amd64.deb ... 360s Unpacking libglx0:amd64 (1.7.0-1build2) ... 360s Selecting previously unselected package libgl1:amd64. 360s Preparing to unpack .../49-libgl1_1.7.0-1build2_amd64.deb ... 360s Unpacking libgl1:amd64 (1.7.0-1build2) ... 360s Selecting previously unselected package xvfb. 360s Preparing to unpack .../50-xvfb_2%3a21.1.18-1ubuntu1_amd64.deb ... 360s Unpacking xvfb (2:21.1.18-1ubuntu1) ... 360s Setting up gnome-desktop-testing (2021.1-4) ... 360s Setting up libxcb-dri3-0:amd64 (1.17.0-2build1) ... 360s Setting up libpixman-1-0:amd64 (0.44.0-3) ... 360s Setting up libx11-xcb1:amd64 (2:1.8.12-1build1) ... 360s Setting up libpciaccess0:amd64 (0.18.1-1ubuntu2) ... 360s Setting up native-architecture (0.2.6) ... 360s Setting up libxcb-xfixes0:amd64 (1.17.0-2build1) ... 360s Setting up desktop-file-utils (0.28-1) ... 360s Setting up libxpm4:amd64 (1:3.5.17-1build2) ... 360s Setting up libxrender1:amd64 (1:0.9.12-1) ... 360s Setting up libgirepository-2.0-0:amd64 (2.86.0-2) ... 360s Setting up libglvnd0:amd64 (1.7.0-1build2) ... 360s Setting up libxcb-glx0:amd64 (1.17.0-2build1) ... 360s Setting up libdrm-intel1:amd64 (2.4.125-1) ... 360s Setting up x11-common (1:7.7+24ubuntu1) ... 360s Setting up libglib2.0-bin (2.86.0-2) ... 360s Setting up libxcb-shm0:amd64 (1.17.0-2build1) ... 360s Setting up python3-dbusmock (0.37.1-1) ... 360s Setting up tzdata-legacy (2025b-3ubuntu1) ... 360s Setting up libxxf86vm1:amd64 (1:1.1.4-1build4) ... 360s Setting up libxcb-present0:amd64 (1.17.0-2build1) ... 360s Setting up libfontenc1:amd64 (1:1.1.8-1build1) ... 360s Setting up python3-packaging (25.0-1) ... 360s Setting up libxcb-sync1:amd64 (1.17.0-2build1) ... 360s Setting up libxrandr2:amd64 (2:1.5.4-1) ... 360s Setting up libvulkan1:amd64 (1.4.321.0-1) ... 360s Setting up gir1.2-glib-2.0-dev:amd64 (2.86.0-2) ... 360s Setting up libxshmfence1:amd64 (1.3.3-1) ... 360s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 360s Setting up libxcb-randr0:amd64 (1.17.0-2build1) ... 360s Setting up libxkbfile1:amd64 (1:1.1.0-1build4) ... 360s Setting up libxfont2:amd64 (1:2.0.6-1build1) ... 360s Setting up libdrm-amdgpu1:amd64 (2.4.125-1) ... 360s Setting up libice6:amd64 (2:1.1.1-1) ... 360s Setting up mesa-libgallium:amd64 (25.2.3-1ubuntu1) ... 360s Setting up libgio-2.0-dev-bin (2.86.0-2) ... 360s Setting up girepository-tools:amd64 (2.86.0-2) ... 360s Setting up libgbm1:amd64 (25.2.3-1ubuntu1) ... 360s Setting up libgl1-mesa-dri:amd64 (25.2.3-1ubuntu1) ... 360s Setting up libsm6:amd64 (2:1.2.6-1) ... 360s Setting up libglib2.0-dev-bin (2.86.0-2) ... 360s Setting up libglx-mesa0:amd64 (25.2.3-1ubuntu1) ... 360s Setting up libglx0:amd64 (1.7.0-1build2) ... 360s Setting up libgl1:amd64 (1.7.0-1build2) ... 360s Setting up libxt6t64:amd64 (1:1.2.1-1.3) ... 360s Setting up libglib2.0-tests (2.86.0-2) ... 360s Setting up libxmu6:amd64 (2:1.1.3-3build3) ... 360s Setting up libxaw7:amd64 (2:1.0.16-1) ... 360s Setting up x11-xkb-utils (7.7+9) ... 360s Setting up xserver-common (2:21.1.18-1ubuntu1) ... 360s Setting up xvfb (2:21.1.18-1ubuntu1) ... 360s Processing triggers for man-db (2.13.1-1) ... 361s Processing triggers for libc-bin (2.42-0ubuntu3) ... 363s autopkgtest [23:18:44]: test installed-tests: [----------------------- 363s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),104(lxd) 363s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 363s group entry: ubuntu:x:1000: 363s Environment: 363s ADTTMP=/tmp/autopkgtest.Jnk3nP/autopkgtest_tmp 363s ADT_ARTIFACTS=/tmp/autopkgtest.Jnk3nP/installed-tests-artifacts 363s ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 363s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.Jnk3nP/installed-tests-artifacts 363s AUTOPKGTEST_TESTBED_ARCH=amd64 363s AUTOPKGTEST_TEST_ARCH=amd64 363s AUTOPKGTEST_TMP=/tmp/autopkgtest.Jnk3nP/autopkgtest_tmp 363s DEBIAN_FRONTEND=noninteractive 363s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 363s DEB_BUILD_OPTIONS=parallel=2 363s GIO_USE_VFS=local 363s GIO_USE_VOLUME_MONITOR=unix 363s HOME=/home/ubuntu 363s LANG=C.UTF-8 363s LOGNAME=ubuntu 363s MAIL=/var/mail/ubuntu 363s OLDPWD=/home/ubuntu 363s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 363s PWD=/tmp/autopkgtest.Jnk3nP/build.NnI/src 363s SHELL=/bin/bash 363s SHLVL=1 363s SUDO_COMMAND=/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.Jnk3nP/wrapper.sh --artifacts=/tmp/autopkgtest.Jnk3nP/installed-tests-artifacts --chdir=/tmp/autopkgtest.Jnk3nP/build.NnI/src --env=AUTOPKGTEST_TESTBED_ARCH=amd64 --env=AUTOPKGTEST_TEST_ARCH=amd64 --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.Jnk3nP/installed-tests-stderr --stdout=/tmp/autopkgtest.Jnk3nP/installed-tests-stdout --tmp=/tmp/autopkgtest.Jnk3nP/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 --make-executable=/tmp/autopkgtest.Jnk3nP/build.NnI/src/debian/tests/installed-tests -- /tmp/autopkgtest.Jnk3nP/build.NnI/src/debian/tests/installed-tests 363s SUDO_GID=1000 363s SUDO_UID=1000 363s SUDO_USER=ubuntu 363s TERM=linux 363s USER=ubuntu 363s XDG_RUNTIME_DIR=/tmp/autopkgtest.Jnk3nP/autopkgtest_tmp 363s http_proxy=http://egress.ps7.internal:3128/ 363s https_proxy=http://egress.ps7.internal:3128/ 363s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain 363s run-with-locales: de_DE=ISO-8859-1... 363s Character set: ISO-8859-1 363s Source file: de_DE 363s Output: /tmp/tmp.fpJajpWpqI/de_DE 364s run-with-locales: de_DE.utf8... 364s Character set: UTF-8 364s Source file: de_DE 364s Output: /tmp/tmp.fpJajpWpqI/de_DE.utf8 364s run-with-locales: de_DE@euro.utf8... 364s Character set: UTF-8 364s Source file: de_DE@euro 364s Output: /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8 365s run-with-locales: el_GR.utf8... 365s Character set: UTF-8 365s Source file: el_GR 365s Output: /tmp/tmp.fpJajpWpqI/el_GR.utf8 366s run-with-locales: en_GB=ISO-8859-1... 366s Character set: ISO-8859-1 366s Source file: en_GB 366s Output: /tmp/tmp.fpJajpWpqI/en_GB 366s run-with-locales: en_GB.utf8... 366s Character set: UTF-8 366s Source file: en_GB 366s Output: /tmp/tmp.fpJajpWpqI/en_GB.utf8 367s run-with-locales: en_US=ISO-8859-1... 367s Character set: ISO-8859-1 367s Source file: en_US 367s Output: /tmp/tmp.fpJajpWpqI/en_US 368s run-with-locales: en_US.utf8... 368s Character set: UTF-8 368s Source file: en_US 368s Output: /tmp/tmp.fpJajpWpqI/en_US.utf8 368s run-with-locales: es_ES.utf8... 368s Character set: UTF-8 368s Source file: es_ES 368s Output: /tmp/tmp.fpJajpWpqI/es_ES.utf8 369s run-with-locales: fa_IR=UTF-8... 369s Character set: UTF-8 369s Source file: fa_IR 369s Output: /tmp/tmp.fpJajpWpqI/fa_IR 370s run-with-locales: fa_IR.utf8... 370s Character set: UTF-8 370s Source file: fa_IR 370s Output: /tmp/tmp.fpJajpWpqI/fa_IR.utf8 371s run-with-locales: fr_FR.utf8... 371s Character set: UTF-8 371s Source file: fr_FR 371s Output: /tmp/tmp.fpJajpWpqI/fr_FR.utf8 372s run-with-locales: hr_HR.utf8... 372s Character set: UTF-8 372s Source file: hr_HR 372s Output: /tmp/tmp.fpJajpWpqI/hr_HR.utf8 373s run-with-locales: ja_JP.utf8... 373s Character set: UTF-8 373s Source file: ja_JP 373s Output: /tmp/tmp.fpJajpWpqI/ja_JP.utf8 373s run-with-locales: ja_JP.EUC-JP... 373s Character set: EUC-JP 373s Source file: ja_JP 373s Output: /tmp/tmp.fpJajpWpqI/ja_JP.eucjp 374s run-with-locales: lt_LT.utf8... 374s Character set: UTF-8 374s Source file: lt_LT 374s Output: /tmp/tmp.fpJajpWpqI/lt_LT.utf8 375s run-with-locales: pl_PL=ISO-8859-2... 375s Character set: ISO-8859-2 375s Source file: pl_PL 375s Output: /tmp/tmp.fpJajpWpqI/pl_PL 375s run-with-locales: pl_PL.ISO-8859-2... 375s Character set: ISO-8859-2 375s Source file: pl_PL 375s Output: /tmp/tmp.fpJajpWpqI/pl_PL.iso88592 375s run-with-locales: pl_PL.utf8... 375s Character set: UTF-8 375s Source file: pl_PL 375s Output: /tmp/tmp.fpJajpWpqI/pl_PL.utf8 376s run-with-locales: ru_RU=ISO-8859-5... 376s Character set: ISO-8859-5 376s Source file: ru_RU 376s Output: /tmp/tmp.fpJajpWpqI/ru_RU 376s run-with-locales: ru_RU.utf8... 376s Character set: UTF-8 376s Source file: ru_RU 376s Output: /tmp/tmp.fpJajpWpqI/ru_RU.utf8 377s run-with-locales: sr_RS=UTF-8... 377s Character set: UTF-8 377s Source file: sr_RS 377s Output: /tmp/tmp.fpJajpWpqI/sr_RS 378s run-with-locales: sr_RS@latin=UTF-8... 378s Character set: UTF-8 378s Source file: sr_RS@latin 378s Output: /tmp/tmp.fpJajpWpqI/sr_RS@latin 379s run-with-locales: sv_SE=ISO-8859-1... 379s Character set: ISO-8859-1 379s Source file: sv_SE 379s Output: /tmp/tmp.fpJajpWpqI/sv_SE 379s run-with-locales: sv_SE.utf8... 379s Character set: UTF-8 379s Source file: sv_SE 379s Output: /tmp/tmp.fpJajpWpqI/sv_SE.utf8 380s run-with-locales: tr_TR=ISO-8859-9... 380s Character set: ISO-8859-9 380s Source file: tr_TR 380s Output: /tmp/tmp.fpJajpWpqI/tr_TR 380s run-with-locales: tr_TR.utf8... 380s Character set: UTF-8 380s Source file: tr_TR 380s Output: /tmp/tmp.fpJajpWpqI/tr_TR.utf8 381s run-with-locales: tt_RU=UTF-8... 381s Character set: UTF-8 381s Source file: tt_RU 381s Output: /tmp/tmp.fpJajpWpqI/tt_RU 382s run-with-locales: tt_RU.utf8... 382s Character set: UTF-8 382s Source file: tt_RU 382s Output: /tmp/tmp.fpJajpWpqI/tt_RU.utf8 383s run-with-locales: tt_RU@iqtelif=UTF-8... 383s Character set: UTF-8 383s Source file: tt_RU@iqtelif 383s Output: /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif 384s /tmp/tmp.fpJajpWpqI 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/el_GR.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ja_JP.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/sr_RS 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_TIME 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_NAME 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sr_RS/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_GB.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_TIME 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_NAME 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ja_JP.eucjp/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sv_SE.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/ru_RU 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_TIME 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_NAME 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ru_RU/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tr_TR.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/hr_HR.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/de_DE 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_TIME 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_NAME 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/de_DE/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/tr_TR 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_TIME 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_NAME 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tr_TR/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_TIME 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_NAME 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sr_RS@latin/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/lt_LT.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/pl_PL 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_TIME 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_NAME 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/pl_PL/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/de_DE1..330 384s # Running test: glib/utf8-validate.test 384s ok - glib/utf8-validate.test 384s # Running test: glib/base64.test 384s ok - glib/base64.test 384s # Running test: glib/error.test 384s @euro.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/de_DE@euro.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/tt_RU 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_TIME 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_NAME 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tt_RU/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/fr_FR.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/de_DE.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/sv_SE 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_TIME 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_NAME 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/sv_SE/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/fa_IR 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_TIME 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_NAME 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/fa_IR/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_TIME 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_NAME 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/pl_PL.iso88592/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/en_US.utf8 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_US.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_TIME 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_NAME 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tt_RU@iqtelif/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/ru_RU.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/en_GB 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_TIME 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_NAME 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_GB/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/en_US 384s /tmp/tmp.fpJajpWpqI/en_US/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/en_US/LC_TIME 384s /tmp/tmp.fpJajpWpqI/en_US/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/en_US/LC_NAME 384s /tmp/tmp.fpJajpWpqI/en_US/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/en_US/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/en_US/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/en_US/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/en_US/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/en_US/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/en_US/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_US/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/en_US/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/pl_PL.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/es_ES.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/tt_ok - glib/error.test 384s # Running test: glib/repository-search-paths.test 384s RU.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/tt_RU.utf8/LC_MEASUREMENT 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_COLLATE 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_TIME 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_IDENTIFICATION 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_NAME 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_TELEPHONE 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_CTYPE 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_PAPER 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_ADDRESS 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_NUMERIC 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_MONETARY 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 384s /tmp/tmp.fpJajpWpqI/fa_IR.utf8/LC_MEASUREMENT 384s TAP version 14 384s # random seed: R02Scdf90d0cc3fa135c1513a00f700c7132 384s 1..238 384s # Start of utf8 tests 384s # Vector 0 384s # Vector 1 384s # Vector 2 384s # Vector 3 384s # Vector 4 384s # Vector 5 384s # Vector 6 384s # Vector 7 384s # Vector 8 384s # Vector 9 384s # Vector 10 384s # Vector 11 384s # Vector 12 384s # Vector 13 384s # Vector 14 384s # Vector 15 384s # Vector 16 384s # Vector 17 384s # Vector 18 384s # Vector 19 384s # Vector 20 384s # Vector 21 384s # Vector 22 384s # Vector 23 384s # Vector 24 384s # Vector 25 384s # Vector 26 384s # Vector 27 384s ok 1 /utf8/get-char-validated 384s # Start of validate tests 384s ok 2 /utf8/validate/0 384s ok 3 /utf8/validate/1 384s ok 4 /utf8/validate/2 384s ok 5 /utf8/validate/3 384s ok 6 /utf8/validate/4 384s ok 7 /utf8/validate/5 384s ok 8 /utf8/validate/6 384s ok 9 /utf8/validate/7 384s ok 10 /utf8/validate/8 384s ok 11 /utf8/validate/9 384s ok 12 /utf8/validate/10 384s ok 13 /utf8/validate/11 384s ok 14 /utf8/validate/12 384s ok 15 /utf8/validate/13 384s ok 16 /utf8/validate/14 384s ok 17 /utf8/validate/15 384s ok 18 /utf8/validate/16 384s ok 19 /utf8/validate/17 384s ok 20 /utf8/validate/18 384s ok 21 /utf8/validate/19 384s ok 22 /utf8/validate/20 384s ok 23 /utf8/validate/21 384s ok 24 /utf8/validate/22 384s ok 25 /utf8/validate/23 384s ok 26 /utf8/validate/24 384s ok 27 /utf8/validate/25 384s ok 28 /utf8/validate/26 384s ok 29 /utf8/validate/27 384s ok 30 /utf8/validate/28 384s ok 31 /utf8/validate/29 384s ok 32 /utf8/validate/30 384s ok 33 /utf8/validate/31 384s ok 34 /utf8/validate/32 384s ok 35 /utf8/validate/33 384s ok 36 /utf8/validate/34 384s ok 37 /utf8/validate/35 384s ok 38 /utf8/validate/36 384s ok 39 /utf8/validate/37 384s ok 40 /utf8/validate/38 384s ok 41 /utf8/validate/39 384s ok 42 /utf8/validate/40 384s ok 43 /utf8/validate/41 384s ok 44 /utf8/validate/42 384s ok 45 /utf8/validate/43 384s ok 46 /utf8/validate/44 384s ok 47 /utf8/validate/45 384s ok 48 /utf8/validate/46 384s ok 49 /utf8/validate/47 384s ok 50 /utf8/validate/48 384s ok 51 /utf8/validate/49 384s ok 52 /utf8/validate/50 384s ok 53 /utf8/validate/51 384s ok 54 /utf8/validate/52 384s ok 55 /utf8/validate/53 384s ok 56 /utf8/validate/54 384s ok 57 /utf8/validate/55 384s ok 58 /utf8/validate/56 384s ok 59 /utf8/validate/57 384s ok 60 /utf8/validate/58 384s ok 61 /utf8/validate/59 384s ok 62 /utf8/validate/60 384s ok 63 /utf8/validate/61 384s ok 64 /utf8/validate/62 384s ok 65 /utf8/validate/63 384s ok 66 /utf8/validate/64 384s ok 67 /utf8/validate/65 384s ok 68 /utf8/validate/66 384s ok 69 /utf8/validate/67 384s ok 70 /utf8/validate/68 384s ok 71 /utf8/validate/69 384s ok 72 /utf8/validate/70 384s ok 73 /utf8/validate/71 384s ok 74 /utf8/validate/72 384s ok 75 /utf8/validate/73 384s ok 76 /utf8/validate/74 384s ok 77 /utf8/validate/75 384s ok 78 /utf8/validate/76 384s ok 79 /utf8/validate/77 384s ok 80 /utf8/validate/78 384s ok 81 /utf8/validate/79 384s ok 82 /utf8/validate/80 384s ok 83 /utf8/validate/81 384s ok 84 /utf8/validate/82 384s ok 85 /utf8/validate/83 384s ok 86 /utf8/validate/84 384s ok 87 /utf8/validate/85 384s ok 88 /utf8/validate/86 384s ok 89 /utf8/validate/87 384s ok 90 /utf8/validate/88 384s ok 91 /utf8/validate/89 384s ok 92 /utf8/validate/90 384s ok 93 /utf8/validate/91 384s ok 94 /utf8/validate/92 384s ok 95 /utf8/validate/93 384s ok 96 /utf8/validate/94 384s ok 97 /utf8/validate/95 384s ok 98 /utf8/validate/96 384s ok 99 /utf8/validate/97 384s ok 100 /utf8/validate/98 384s ok 101 /utf8/validate/99 384s ok 102 /utf8/validate/100 384s ok 103 /utf8/validate/101 384s ok 104 /utf8/validate/102 384s ok 105 /utf8/validate/103 384s ok 106 /utf8/validate/104 384s ok 107 /utf8/validate/105 384s ok 108 /utf8/validate/106 384s ok 109 /utf8/validate/107 384s ok 110 /utf8/validate/108 384s ok 111 /utf8/validate/109 384s ok 112 /utf8/validate/110 384s ok 113 /utf8/validate/111 384s ok 114 /utf8/validate/112 384s ok 115 /utf8/validate/113 384s ok 116 /utf8/validate/114 384s ok 117 /utf8/validate/115 384s ok 118 /utf8/validate/116 384s ok 119 /utf8/validate/117 384s ok 120 /utf8/validate/118 384s ok 121 /utf8/validate/119 384s ok 122 /utf8/validate/120 384s ok 123 /utf8/validate/121 384s ok 124 /utf8/validate/122 384s ok 125 /utf8/validate/123 384s ok 126 /utf8/validate/124 384s ok 127 /utf8/validate/125 384s ok 128 /utf8/validate/126 384s ok 129 /utf8/validate/127 384s ok 130 /utf8/validate/128 384s ok 131 /utf8/validate/129 384s ok 132 /utf8/validate/130 384s ok 133 /utf8/validate/131 384s ok 134 /utf8/validate/132 384s ok 135 /utf8/validate/133 384s ok 136 /utf8/validate/134 384s ok 137 /utf8/validate/135 384s ok 138 /utf8/validate/136 384s ok 139 /utf8/validate/137 384s ok 140 /utf8/validate/138 384s ok 141 /utf8/validate/139 384s ok 142 /utf8/validate/140 384s ok 143 /utf8/validate/141 384s ok 144 /utf8/validate/142 384s ok 145 /utf8/validate/143 384s ok 146 /utf8/validate/144 384s ok 147 /utf8/validate/145 384s ok 148 /utf8/validate/146 384s ok 149 /utf8/validate/147 384s ok 150 /utf8/validate/148 384s ok 151 /utf8/validate/149 384s ok 152 /utf8/validate/150 384s ok 153 /utf8/validate/151 384s ok 154 /utf8/validate/152 384s ok 155 /utf8/validate/153 384s ok 156 /utf8/validate/154 384s ok 157 /utf8/validate/155 384s ok 158 /utf8/validate/156 384s ok 159 /utf8/validate/157 384s ok 160 /utf8/validate/158 384s ok 161 /utf8/validate/159 384s ok 162 /utf8/validate/160 384s ok 163 /utf8/validate/161 384s ok 164 /utf8/validate/162 384s ok 165 /utf8/validate/163 384s ok 166 /utf8/validate/164 384s ok 167 /utf8/validate/165 384s ok 168 /utf8/validate/166 384s ok 169 /utf8/validate/167 384s ok 170 /utf8/validate/168 384s ok 171 /utf8/validate/169 384s ok 172 /utf8/validate/170 384s ok 173 /utf8/validate/171 384s ok 174 /utf8/validate/172 384s ok 175 /utf8/validate/173 384s ok 176 /utf8/validate/174 384s ok 177 /utf8/validate/175 384s ok 178 /utf8/validate/176 384s ok 179 /utf8/validate/177 384s ok 180 /utf8/validate/178 384s ok 181 /utf8/validate/179 384s ok 182 /utf8/validate/180 384s ok 183 /utf8/validate/181 384s ok 184 /utf8/validate/182 384s ok 185 /utf8/validate/183 384s ok 186 /utf8/validate/184 384s ok 187 /utf8/validate/185 384s ok 188 /utf8/validate/186 384s ok 189 /utf8/validate/187 384s ok 190 /utf8/validate/188 384s ok 191 /utf8/validate/189 384s ok 192 /utf8/validate/190 384s ok 193 /utf8/validate/191 384s ok 194 /utf8/validate/192 384s ok 195 /utf8/validate/193 384s ok 196 /utf8/validate/194 384s ok 197 /utf8/validate/195 384s ok 198 /utf8/validate/196 384s ok 199 /utf8/validate/197 384s ok 200 /utf8/validate/198 384s ok 201 /utf8/validate/199 384s ok 202 /utf8/validate/200 384s ok 203 /utf8/validate/201 384s ok 204 /utf8/validate/202 384s ok 205 /utf8/validate/203 384s ok 206 /utf8/validate/204 384s ok 207 /utf8/validate/205 384s ok 208 /utf8/validate/206 384s ok 209 /utf8/validate/207 384s ok 210 /utf8/validate/208 384s ok 211 /utf8/validate/209 384s ok 212 /utf8/validate/210 384s ok 213 /utf8/validate/211 384s ok 214 /utf8/validate/212 384s ok 215 /utf8/validate/213 384s ok 216 /utf8/validate/214 384s ok 217 /utf8/validate/215 384s ok 218 /utf8/validate/216 384s ok 219 /utf8/validate/217 384s ok 220 /utf8/validate/218 384s ok 221 /utf8/validate/219 384s ok 222 /utf8/validate/220 384s ok 223 /utf8/validate/221 384s ok 224 /utf8/validate/222 384s ok 225 /utf8/validate/223 384s ok 226 /utf8/validate/224 384s ok 227 /utf8/validate/225 384s ok 228 /utf8/validate/226 384s ok 229 /utf8/validate/227 384s ok 230 /utf8/validate/228 384s ok 231 /utf8/validate/229 384s ok 232 /utf8/validate/230 384s ok 233 /utf8/validate/231 384s ok 234 /utf8/validate/232 384s ok 235 /utf8/validate/233 384s ok 236 /utf8/validate/234 384s ok 237 /utf8/validate/235 384s ok 238 /utf8/validate/236 384s # End of validate tests 384s # End of utf8 tests 384s TAP version 14 384s # random seed: R02Se92c0b48653702a711dbc27cbbcac550 384s 1..28 384s # Start of base64 tests 384s ok 1 /base64/encode 384s ok 2 /base64/decode 384s ok 3 /base64/decode-inplace 384s ok 4 /base64/encode-decode 384s # Start of full tests 384s ok 5 /base64/full/1 384s ok 6 /base64/full/2 384s ok 7 /base64/full/3 384s ok 8 /base64/full/4 384s # End of full tests 384s # Start of encode tests 384s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 384s ok 9 /base64/encode/empty 384s # Start of incremental tests 384s # Start of small-block tests 384s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 384s ok 10 /base64/encode/incremental/small-block/1 384s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 384s ok 11 /base64/encode/incremental/small-block/2 384s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 384s ok 12 /base64/encode/incremental/small-block/3 384s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 384s ok 13 /base64/encode/incremental/small-block/4 384s # End of small-block tests 384s # End of incremental tests 384s # End of encode tests 384s # Start of incremental tests 384s # Start of nobreak tests 384s ok 14 /base64/incremental/nobreak/1 384s ok 15 /base64/incremental/nobreak/2 384s ok 16 /base64/incremental/nobreak/3 384s ok 17 /base64/incremental/nobreak/4-a 384s ok 18 /base64/incremental/nobreak/4-b 384s ok 19 /base64/incremental/nobreak/4-c 384s # End of nobreak tests 384s # Start of break tests 384s ok 20 /base64/incremental/break/1 384s ok 21 /base64/incremental/break/2 384s ok 22 /base64/incremental/break/3 384s # End of break tests 384s # Start of smallblock tests 384s ok 23 /base64/incremental/smallblock/1 384s ok 24 /base64/incremental/smallblock/2 384s ok 25 /base64/incremental/smallblock/3 384s ok 26 /base64/incremental/smallblock/4 384s # End of smallblock tests 384s # End of incremental tests 384s # Start of decode tests 384s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 384s ok 27 /base64/decode/empty 384s # End of decode tests 384s # Start of encode-decode tests 384s # Vector 0: 384s # Vector 1: f 384s # Vector 2: fo 384s # Vector 3: foo 384s # Vector 4: foob 384s # Vector 5: fooba 384s # Vector 6: foobar 384s ok 28 /base64/encode-decode/rfc4648 384s # End of encode-decode tests 384s # End of base64 tests 384s TAP version 14 384s # random seed: R02S1504042a18d784c7ee30122f505d0d2b 384s 1..3 384s # Start of error tests 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_K5GNE3/error/from-errno/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_K5GNE3/error/from-errno/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_K5GNE3/error/from-errno/.dirs/system-config1:/tmp/test_error_K5GNE3/error/from-errno/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_K5GNE3/error/from-errno/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_K5GNE3/error/from-errno/.dirs/system-data1:/tmp/test_error_K5GNE3/error/from-errno/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_K5GNE3/error/from-errno/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_K5GNE3/error/from-errno/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_K5GNE3/error/from-errno/.dirs/runtime 384s ok 1 /error/from-errno 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/system-config1:/tmp/test_error_K5GNE3/error/from-file-error/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/system-data1:/tmp/test_error_K5GNE3/error/from-file-error/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_K5GNE3/error/from-file-error/.dirs/runtime 384s ok 2 /error/from-file-error 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_K5GNE3/error/from-win32-error/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_K5GNE3/error/from-win32-error/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_K5GNE3/error/from-win32-error/.dirs/runtime 384s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 384s # End of error tests 384s TAP version 14 384s ok - glib/repository-search-paths.test 384s # Running test: glib/utils-c-17.test 384s ok - glib/utils-c-17.test 384s # Running test: glib/portal-support-flatpak-network-only.test 384s ok - glib/portal-support-flatpak-network-only.test 384s # Running test: glib/gmenumodel.test 384s # random seed: R02S45b408d4b5b60263c2eefa69b14b62d2 384s 1..4 384s # Start of repository tests 384s # Start of search-paths tests 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/default/.dirs/runtime 384s ok 1 /repository/search-paths/default 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_QE6ME3/repository/search-paths/prepend/.dirs/runtime 384s ok 2 /repository/search-paths/prepend 384s # End of search-paths tests 384s # Start of library-paths tests 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/default/.dirs/runtime 384s ok 3 /repository/library-paths/default 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_QE6ME3/repository/library-paths/prepend/.dirs/runtime 384s ok 4 /repository/library-paths/prepend 384s # End of library-paths tests 384s # End of repository tests 384s TAP version 14 384s # random seed: R02Sfae7043c0b107f0a18cf1f2415dabb81 384s 1..41 384s # Start of utils tests 384s ok 1 /utils/language-names 384s # Testing locale ‘en’ 384s # Testing locale ‘sr@latin’ 384s # Testing locale ‘fr_BE’ 384s # Testing locale ‘sr_SR@latin’ 384s # Testing locale ‘sr_SR@latin.UTF-8’ 384s # Testing locale ‘sr@latin_invalid’ 384s # Testing locale ‘sr.UTF-8@latin’ 384s # Testing locale ‘sr.UTF-8_latin’ 384s # Testing locale ‘sr.UTF-8@latin_invalid’ 384s ok 2 /utils/locale-variants 384s ok 3 /utils/version 384s ok 4 /utils/appname 384s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 384s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 384s ok 5 /utils/prgname-thread-safety 384s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 384s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 384s ok 6 /utils/tmpdir 384s ok 7 /utils/basic_bits 384s ok 8 /utils/bits 384s ok 9 /utils/swap 384s ok 10 /utils/find-program 384s ok 11 /utils/find-program-for-path 384s ok 12 /utils/debug 384s ok 13 /utils/codeset 384s ok 14 /utils/codeset2 384s ok 15 /utils/console-charset 384s ok 16 /utils/gettext 384s ok 17 /utils/username 384s ok 18 /utils/realname 384s ok 19 /utils/hostname 384s ok 20 /utils/xdgdirs 384s ok 21 /utils/specialdir 384s # NAME: Ubuntu 384s ok 22 /utils/os-info 384s ok 23 /utils/clear-pointer 384s ok 24 /utils/clear-pointer-cast 384s ok 25 /utils/take-pointer 384s ok 26 /utils/clear-source 384s ok 27 /utils/misc-mem 384s # /utils/aligned-mem summary: Aligned memory allocator 384s # Alignment must not be zero 384s # Alignment must be a power of two 384s # Alignment must be a multiple of sizeof(void*) 384s ok 28 /utils/aligned-mem 384s # /utils/free-sized summary: Check that g_free_sized() works 384s ok 29 /utils/free-sized 384s ok 30 /utils/nullify 384s ok 31 /utils/atexit 384s ok 32 /utils/check-setuid 384s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 384s ok 33 /utils/int-limits 384s ok 34 /utils/clear-list 384s ok 35 /utils/clear-slist 384s ok 36 /utils/steal-handle-id 384s # Start of specialdir tests 384s ok 37 /utils/specialdir/desktop 384s # End of specialdir tests 384s # Start of clear-pointer tests 384s ok 38 /utils/clear-pointer/side-effects 384s # End of clear-pointer tests 384s # Start of aligned-mem tests 384s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 384s ok 39 /utils/aligned-mem/alignment 384s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 384s ok 40 /utils/aligned-mem/zeroed 384s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 384s ok 41 /utils/aligned-mem/free-sized 384s # Start of subprocess tests 384s # End of subprocess tests 384s # End of aligned-mem tests 384s # End of utils tests 384s TAP version 14 384s # random seed: R02Sa540ec694239dfe49685946273b044fb 384s 1..1 384s # Start of portal-support tests 384s # Start of flatpak tests 384s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/home 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/cache 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/system-config2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/config 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/system-data2 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/data 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/state 384s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/runtime 384s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_A1MNE3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 384s ok 1 /portal-support/flatpak/network 384s # End of flatpak tests 384s # End of portal-support tests 384s TAP version 14 384s # random seed: R02S93cb83bec597907f6bbb94ead1c1ca11 384s 1..15 384s # Start of gmenu tests 384s ok 1 /gmenu/equality 384s ok 2 /gmenu/random 384s ok 3 /gmenu/attributes 384s ok 4 /gmenu/links 384s ok 5 /gmenu/mutable 384s ok 6 /gmenu/convenience 384s ok 7 /gmenu/menuitem 384s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 384s ok 8 /gmenu/input-validation 384s # Start of dbus tests 385s ok 9 /gmenu/dbus/roundtrip 385s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 386s ok 10 /gmenu/dbus/subscriptions 386s ok 11 /gmenu/dbus/threaded 386s # Start of peer tests 387s ok 12 /gmenu/dbus/peer/roundtrip 387s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 388s ok 13 /gmenu/dbus/peer/subscriptions 388s # End of peer tests 388s # Start of export tests 388s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 388s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 388s ok 14 /gmenu/dbus/export/error-handling 388s # End of export tests 388s # End of dbus tests 388s # Start of attributes tests 388s ok 15 /gmenu/attributes/iterate 388s # End of attributes tests 388s # End of gmenu tests 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s ok - glib/gmenumodel.test 388s # Running test: glib/gdbus-connection-slow.test 388s TAP version 14 388s # random seed: R02Sccdd7fd14326bd9b0643c9aab0e2024b 388s 1..2 388s # Start of gdbus tests 388s # Start of connection tests 388s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/home 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/cache 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/system-config2 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/config 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/system-data2 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/data 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/state 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/flush/.dirs/runtime 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s ok 1 /gdbus/connection/flush 388s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/home 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/cache 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/system-config2 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/config 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/system-data2 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/data 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/state 388s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_V5BTE3/gdbus/connection/large_message/.dirs/runtime 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 388s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 389s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 389s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 389s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 389s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 389s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 389s ok 2 /gdbus/connection/large_message 389s # End of connection tests 389s # End of gdbus tests 389s ok - glib/gdbus-connection-slow.test 389s TAP version 14 389s # random seed: R02S24af13c77e8250b096f3c85725e2d0c2 389s 1..21 389s # Start of bytes tests 389s ok 1 /bytes/new 389s ok 2 /bytes/new-take 389s ok 3 /bytes/new-static 389s ok 4 /bytes/new-with-free-func 389s ok 5 /bytes/new-from-bytes 389s ok 6 /bytes/new-from-bytes-slice 389s ok 7 /bytes/new-from-bytes-shared-ref 389s ok 8 /bytes/hash 389s ok 9 /bytes/equal 389s ok 10 /bytes/compare 389s ok 11 /bytes/null 389s ok 12 /bytes/get-region 389s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 389s ok 13 /bytes/unref-null 389s # Start of to-data tests 389s ok 14 /bytes/to-data/transferred 389s ok 15 /bytes/to-data/two-refs 389s ok 16 /bytes/to-data/non-malloc 389s ok 17 /bytes/to-data/different-free-func 389s # End of to-data tests 389s # Start of to-array tests 389s ok 18 /bytes/to-array/transferred 389s ok 19 /bytes/to-array/two-refs 389s ok 20 /bytes/to-array/non-malloc 389s # Start of transferred tests 389s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 389s ok 21 /bytes/to-array/transferred/oversize 389s # End of transferred tests 389s # End of to-array tests 389s # End of bytes tests 389s TAP version 14 389s # random seed: R02S3006de5ac08b883bc6919c6238011b51 389s 1..1 389s # Start of memory-settings-backend tests 389s ok 1 /memory-settings-backend/extension-point-registered 389s # End of memory-settings-backend tests 389s TAP version 14 389s # random seed: R02Se8a34da1d86ae6819524ee43607d8460 389s 1..1 389s # Start of permission tests 389s ok 1 /permission/simple 389s # End of permission tests 389s TAP version 14 389s # random seed: R02Sd2a4dc32f3ca7fcd1d5c96c48b75987d 389s 1..4 389s # Start of refcount tests 389s ok 1 /refcount/grefcount 389s ok 2 /refcount/gatomicrefcount 389s # Start of grefcount tests 389s ok 3 /refcount/grefcount/saturation 389s # End of grefcount tests 389s # Start of gatomicrefcount tests 389s ok 4 /refcount/gatomicrefcount/saturation 389s # End of gatomicrefcount tests 389s # End of refcount tests 389s TAP version 14 389s # random seed: R02Sa0d283534357b4605a42e495a887748b 389s 1..1 389s # Start of gobject tests 389s # Start of refcount tests 389s # Running test: glib/bytes.test 389s ok - glib/bytes.test 389s # Running test: glib/memory-settings-backend.test 389s ok - glib/memory-settings-backend.test 389s # Running test: glib/permission.test 389s ok - glib/permission.test 389s # Running test: glib/refcount.test 389s ok - glib/refcount.test 389s # Running test: glib/properties-refcount3.test 389s # Executing: glib/properties-refcount3.test 394s # Executing: glib/properties-refcount3.test 399s # Executing: glib/properties-refcount3.test 404s # Executing: glib/properties-refcount3.test 409s # Executing: glib/properties-refcount3.test 414s # Executing: glib/properties-refcount3.test 418s # 418s # stopping 418s # 418s # stopped 418s # 418s # 27511347 354280 418s # 418s ok 1 /gobject/refcount/properties-3 418s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 418s # End of refcount tests 418s # End of gobject tests 418s ok - glib/properties-refcount3.test 418s # Running test: glib/credentials.test 418s TAP version 14 418s # random seed: R02S5f4fd8fb301ec8c252e53454716d76f2 418s 1..1 418s # Start of credentials tests 418s # GCredentials:linux-ucred:pid=2306,uid=1000,gid=1000 418s # GCredentials:linux-ucred:pid=2306,uid=0,gid=1000 418s ok 1 /credentials/basic 418s # End of credentials tests 418s ok - glib/credentials.test 418s # Running test: glib/genmarshal.py.test 418s TAP version 13 418s ok 1 __main__.TestGenmarshal.test_empty_list 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmpavd68bhw 418s # /tmp/tmpavd68bhw/tmp79fbtv3e.list: 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpavd68bhw/tmp79fbtv3e.list', '--header', '--quiet'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # 418s # #include 418s # 418s # G_BEGIN_DECLS 418s # 418s # 418s # G_END_DECLS 418s # 418s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 418s # Error: 418s # 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpavd68bhw/tmp79fbtv3e.list', '--body', '--quiet'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #include 418s # 418s # #ifdef G_ENABLE_DEBUG 418s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 418s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 418s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 418s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 418s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 418s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 418s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 418s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 418s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 418s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 418s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 418s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 418s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 418s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 418s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 418s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 418s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 418s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 418s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 418s # #else /* !G_ENABLE_DEBUG */ 418s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 418s # * Do not access GValues directly in your code. Instead, use the 418s # * g_value_get_*() functions 418s # */ 418s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 418s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 418s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 418s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 418s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 418s # #endif /* !G_ENABLE_DEBUG */ 418s # Error: 418s ok 2 __main__.TestGenmarshal.test_help 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmpp8l397hm 418s # Running: ['/usr/bin/glib-genmarshal', '--help'] 418s # Return code: 0 418s # Output: 418s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 418s # [--internal] [--valist-marshallers] [-v] 418s # [--g-fatal-warnings] [--include-header [HEADER]] 418s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 418s # [--prototypes] [--header] [--body] [--stdinc | 418s # --nostdinc] [--quiet | --verbose] 418s # [FILE ...] 418s # 418s # Generate signal marshallers for GObject 418s # 418s # positional arguments: 418s # FILE Files with lists of marshallers to generate, or "-" 418s # for standard input 418s # 418s # options: 418s # -h, --help show this help message and exit 418s # --prefix STRING Specify marshaller prefix 418s # --output FILE Write output into the specified file 418s # --skip-source Skip source location comments 418s # --internal Mark generated functions as internal 418s # --valist-marshallers Generate va_list marshallers 418s # -v, --version Print version information, and exit 418s # --g-fatal-warnings Make warnings fatal 418s # --include-header [HEADER] 418s # Include the specified header in the body 418s # --pragma-once Use "pragma once" as the inclusion guard 418s # -D CPP_DEFINES Pre-processor define 418s # -U CPP_UNDEFINES Pre-processor undefine 418s # --prototypes Generate the marshallers prototype in the C code 418s # --header Generate C headers 418s # --body Generate C code 418s # --stdinc Include standard marshallers 418s # --nostdinc Use standard marshallers 418s # --quiet Only print warnings and errors 418s # --verbose Be verbose, and include debugging information 418s # Error: 418s ok 3 __main__.TestGenmarshal.test_no_args 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmptwzr__np 418s # Running: ['/usr/bin/glib-genmarshal'] 418s # Return code: 0 418s # Output: 418s # 418s # Error: 418s ok 4 __main__.TestGenmarshal.test_void_boolean 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmp8d7n1q78 418s # /tmp/tmp8d7n1q78/tmpw5mmtys1.list: VOID:BOOLEAN 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8d7n1q78/tmpw5mmtys1.list', '--header', '--quiet'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # 418s # #include 418s # 418s # G_BEGIN_DECLS 418s # 418s # /* VOID:BOOLEAN (/tmp/tmp8d7n1q78/tmpw5mmtys1.list:1) */ 418s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 418s # 418s # 418s # G_END_DECLS 418s # 418s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 418s # Error: 418s # 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp8d7n1q78/tmpw5mmtys1.list', '--body', '--quiet'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #include 418s # 418s # #ifdef G_ENABLE_DEBUG 418s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 418s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 418s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 418s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 418s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 418s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 418s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 418s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 418s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 418s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 418s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 418s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 418s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 418s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 418s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 418s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 418s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 418s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 418s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 418s # #else /* !G_ENABLE_DEBUG */ 418s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 418s # * Do not access GValues directly in your code. Instead, use the 418s # * g_value_get_*() functions 418s # */ 418s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 418s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 418s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 418s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 418s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 418s # #endif /* !G_ENABLE_DEBUG */ 418s # Error: 418s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmp3ax934cr 418s # /tmp/tmp3ax934cr/tmp75_22oyx.list: VOID:BOOLEAN,INT64 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp3ax934cr/tmp75_22oyx.list', '--header', '--quiet'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # 418s # #include 418s # 418s # G_BEGIN_DECLS 418s # 418s # /* VOID:BOOLEAN,INT64 (/tmp/tmp3ax934cr/tmp75_22oyx.list:1) */ 418s # extern 418s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 418s # GValue *return_value, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint, 418s # gpointer marshal_data); 418s # 418s # 418s # G_END_DECLS 418s # 418s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 418s # Error: 418s # 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp3ax934cr/tmp75_22oyx.list', '--body', '--quiet'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #include 418s # 418s # #ifdef G_ENABLE_DEBUG 418s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 418s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 418s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 418s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 418s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 418s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 418s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 418s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 418s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 418s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 418s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 418s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 418s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 418s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 418s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 418s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 418s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 418s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 418s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 418s # #else /* !G_ENABLE_DEBUG */ 418s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 418s # * Do not access GValues directly in your code. Instead, use the 418s # * g_value_get_*() functions 418s # */ 418s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 418s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 418s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 418s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 418s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 418s # #endif /* !G_ENABLE_DEBUG */ 418s # 418s # /* VOID:BOOLEAN,INT64 (/tmp/tmp3ax934cr/tmp75_22oyx.list:1) */ 418s # void 418s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint G_GNUC_UNUSED, 418s # gpointer marshal_data) 418s # { 418s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 418s # gboolean arg1, 418s # gint64 arg2, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 418s # 418s # g_return_if_fail (n_param_values == 3); 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = g_value_peek_pointer (param_values + 0); 418s # } 418s # else 418s # { 418s # data1 = g_value_peek_pointer (param_values + 0); 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # g_marshal_value_peek_boolean (param_values + 1), 418s # g_marshal_value_peek_int64 (param_values + 2), 418s # data2); 418s # } 418s # Error: 418s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmptjtill_t 418s # /tmp/tmptjtill_t/tmp8ecxkr4b.list: VOID:PARAM 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmptjtill_t/tmp8ecxkr4b.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # 418s # G_BEGIN_DECLS 418s # 418s # /* VOID:PARAM (/tmp/tmptjtill_t/tmp8ecxkr4b.list:1) */ 418s # extern 418s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 418s # GValue *return_value, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint, 418s # gpointer marshal_data); 418s # extern 418s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 418s # GValue *return_value, 418s # gpointer instance, 418s # va_list args, 418s # gpointer marshal_data, 418s # int n_params, 418s # GType *param_types); 418s # 418s # 418s # G_END_DECLS 418s # 418s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 418s # Error: 418s # 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmptjtill_t/tmp8ecxkr4b.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifdef G_ENABLE_DEBUG 418s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 418s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 418s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 418s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 418s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 418s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 418s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 418s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 418s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 418s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 418s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 418s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 418s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 418s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 418s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 418s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 418s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 418s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 418s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 418s # #else /* !G_ENABLE_DEBUG */ 418s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 418s # * Do not access GValues directly in your code. Instead, use the 418s # * g_value_get_*() functions 418s # */ 418s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 418s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 418s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 418s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 418s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 418s # #endif /* !G_ENABLE_DEBUG */ 418s # 418s # /* VOID:PARAM (/tmp/tmptjtill_t/tmp8ecxkr4b.list:1) */ 418s # void 418s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint G_GNUC_UNUSED, 418s # gpointer marshal_data) 418s # { 418s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 418s # gpointer arg1, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__PARAM callback; 418s # 418s # g_return_if_fail (n_param_values == 2); 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = g_value_peek_pointer (param_values + 0); 418s # } 418s # else 418s # { 418s # data1 = g_value_peek_pointer (param_values + 0); 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # g_marshal_value_peek_param (param_values + 1), 418s # data2); 418s # } 418s # 418s # void 418s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # gpointer instance, 418s # va_list args, 418s # gpointer marshal_data, 418s # int n_params, 418s # GType *param_types) 418s # { 418s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 418s # gpointer arg1, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__PARAM callback; 418s # gpointer arg0; 418s # va_list args_copy; 418s # 418s # va_copy (args_copy, args); 418s # arg0 = (gpointer) va_arg (args_copy, gpointer); 418s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 418s # arg0 = g_param_spec_ref (arg0); 418s # va_end (args_copy); 418s # 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = instance; 418s # } 418s # else 418s # { 418s # data1 = instance; 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # arg0, 418s # data2); 418s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 418s # g_param_spec_unref (arg0); 418s # } 418s # Error: 418s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmp6fzcs_u4 418s # /tmp/tmp6fzcs_u4/tmpgut82vjw.list: VOID:STRING 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp6fzcs_u4/tmpgut82vjw.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # 418s # G_BEGIN_DECLS 418s # 418s # /* VOID:STRING (/tmp/tmp6fzcs_u4/tmpgut82vjw.list:1) */ 418s # extern 418s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 418s # GValue *return_value, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint, 418s # gpointer marshal_data); 418s # extern 418s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 418s # GValue *return_value, 418s # gpointer instance, 418s # va_list args, 418s # gpointer marshal_data, 418s # int n_params, 418s # GType *param_types); 418s # 418s # 418s # G_END_DECLS 418s # 418s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 418s # Error: 418s # 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp6fzcs_u4/tmpgut82vjw.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifdef G_ENABLE_DEBUG 418s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 418s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 418s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 418s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 418s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 418s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 418s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 418s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 418s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 418s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 418s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 418s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 418s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 418s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 418s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 418s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 418s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 418s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 418s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 418s # #else /* !G_ENABLE_DEBUG */ 418s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 418s # * Do not access GValues directly in your code. Instead, use the 418s # * g_value_get_*() functions 418s # */ 418s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 418s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 418s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 418s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 418s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 418s # #endif /* !G_ENABLE_DEBUG */ 418s # 418s # /* VOID:STRING (/tmp/tmp6fzcs_u4/tmpgut82vjw.list:1) */ 418s # void 418s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint G_GNUC_UNUSED, 418s # gpointer marshal_data) 418s # { 418s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 418s # gpointer arg1, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__STRING callback; 418s # 418s # g_return_if_fail (n_param_values == 2); 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = g_value_peek_pointer (param_values + 0); 418s # } 418s # else 418s # { 418s # data1 = g_value_peek_pointer (param_values + 0); 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # g_marshal_value_peek_string (param_values + 1), 418s # data2); 418s # } 418s # 418s # void 418s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # gpointer instance, 418s # va_list args, 418s # gpointer marshal_data, 418s # int n_params, 418s # GType *param_types) 418s # { 418s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 418s # gpointer arg1, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__STRING callback; 418s # gpointer arg0; 418s # va_list args_copy; 418s # 418s # va_copy (args_copy, args); 418s # arg0 = (gpointer) va_arg (args_copy, gpointer); 418s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 418s # arg0 = g_strdup (arg0); 418s # va_end (args_copy); 418s # 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = instance; 418s # } 418s # else 418s # { 418s # data1 = instance; 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # arg0, 418s # data2); 418s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 418s # g_free (arg0); 418s # } 418s # Error: 418s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 418s # glib-genmarshal: /usr/bin/glib-genmarshal 418s # tmpdir: /tmp/tmp683937yp 418s # /tmp/tmp683937yp/tmp9kz4ol7b.list: VOID:VARIANT 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp683937yp/tmp9kz4ol7b.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 418s # 418s # G_BEGIN_DECLS 418s # 418s # /* VOID:VARIANT (/tmp/tmp683937yp/tmp9kz4ol7b.list:1) */ 418s # extern 418s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 418s # GValue *return_value, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint, 418s # gpointer marshal_data); 418s # extern 418s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 418s # GValue *return_value, 418s # gpointer instance, 418s # va_list args, 418s # gpointer marshal_data, 418s # int n_params, 418s # GType *param_types); 418s # 418s # 418s # G_END_DECLS 418s # 418s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 418s # Error: 418s # 418s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp683937yp/tmp9kz4ol7b.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # #ifdef G_ENABLE_DEBUG 418s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 418s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 418s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 418s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 418s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 418s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 418s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 418s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 418s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 418s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 418s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 418s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 418s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 418s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 418s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 418s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 418s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 418s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 418s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 418s # #else /* !G_ENABLE_DEBUG */ 418s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 418s # * Do not access GValues directly in your code. Instead, use the 418s # * g_value_get_*() functions 418s # */ 418s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 418s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 418s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 418s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 418s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 418s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 418s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 418s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 418s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 418s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 418s # #endif /* !G_ENABLE_DEBUG */ 418s # 418s # /* VOID:VARIANT (/tmp/tmp683937yp/tmp9kz4ol7b.list:1) */ 418s # void 418s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # guint n_param_values, 418s # const GValue *param_values, 418s # gpointer invocation_hint G_GNUC_UNUSED, 418s # gpointer marshal_data) 418s # { 418s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 418s # gpointer arg1, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__VARIANT callback; 418s # 418s # g_return_if_fail (n_param_values == 2); 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = g_value_peek_pointer (param_values + 0); 418s # } 418s # else 418s # { 418s # data1 = g_value_peek_pointer (param_values + 0); 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # g_marshal_value_peek_variant (param_values + 1), 418s # data2); 418s # } 418s # 418s # void 418s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 418s # GValue *return_value G_GNUC_UNUSED, 418s # gpointer instance, 418s # va_list args, 418s # gpointer marshal_data, 418s # int n_params, 418s # GType *param_types) 418s # { 418s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 418s # gpointer arg1, 418s # gpointer data2); 418s # GCClosure *cc = (GCClosure *) closure; 418s # gpointer data1, data2; 418s # GMarshalFunc_VOID__VARIANT callback; 418s # gpointer arg0; 418s # va_list args_copy; 418s # 418s # va_copy (args_copy, args); 418s # arg0 = (gpointer) va_arg (args_copy, gpointer); 418s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 418s # arg0 = g_variant_ref_sink (arg0); 418s # va_end (args_copy); 418s # 418s # 418s # if (G_CCLOSURE_SWAP_DATA (closure)) 418s # { 418s # data1 = closure->data; 418s # data2 = instance; 418s # } 418s # else 418s # { 418s # data1 = instance; 418s # data2 = closure->data; 418s # } 418s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 418s # 418s # callback (data1, 418s # arg0, 418s # data2); 418s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 418s # g_variant_unref (arg0); 418s # } 418s # Error: 418s 1..8 418s ok - glib/genmarshal.py.test 418s # Running test: glib/mkenums.py.test 418s TAP version 13 418s ok 1 __main__.TestMkenums.test_available_in 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpdendpdbm 418s # rspfile: False 418s # /tmp/tmpdendpdbm/tmplpdcw24e.h: 418s # typedef enum { 418s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 418s # } GDBusServerFlags; 418s # 418s # /tmp/tmpdendpdbm/tmpk4n0oyqj.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpdendpdbm/tmpk4n0oyqj.template', '/tmp/tmpdendpdbm/tmplpdcw24e.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpdendpdbm/tmplpdcw24e.h 418s # basename: tmplpdcw24e.h 418s # enumeration-production 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-header 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-production 418s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 418s # valuenick: user 418s # valuenum: 4 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-tail 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 2 __main__.TestMkenums.test_comma_in_enum_value 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpwajrby6q 418s # rspfile: False 418s # /tmp/tmpwajrby6q/tmp0ua7uvco.h: 418s # typedef enum { 418s # ENUM_VALUE_WITH_COMMA = ',', 418s # } TestCommaEnum; 418s # 418s # /tmp/tmpwajrby6q/tmpa8vfs59d.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpwajrby6q/tmpa8vfs59d.template', '/tmp/tmpwajrby6q/tmp0ua7uvco.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpwajrby6q/tmp0ua7uvco.h 418s # basename: tmp0ua7uvco.h 418s # enumeration-production 418s # EnumName: TestCommaEnum 418s # enum_name: test_comma_enum 418s # ENUMNAME: TEST_COMMA_ENUM 418s # ENUMSHORT: COMMA_ENUM 418s # ENUMPREFIX: TEST 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-header 418s # EnumName: TestCommaEnum 418s # enum_name: test_comma_enum 418s # ENUMNAME: TEST_COMMA_ENUM 418s # ENUMSHORT: COMMA_ENUM 418s # ENUMPREFIX: TEST 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-production 418s # VALUENAME: ENUM_VALUE_WITH_COMMA 418s # valuenick: comma 418s # valuenum: 44 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-tail 418s # EnumName: TestCommaEnum 418s # enum_name: test_comma_enum 418s # ENUMNAME: TEST_COMMA_ENUM 418s # ENUMSHORT: COMMA_ENUM 418s # ENUMPREFIX: TEST 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 3 __main__.TestMkenums.test_deprecated_in 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpb3gpwakq 418s # rspfile: False 418s # /tmp/tmpb3gpwakq/tmpg_vwg0_c.h: 418s # typedef enum { 418s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 418s # } GDBusServerFlags; 418s # 418s # /tmp/tmpb3gpwakq/tmp5jyb7qm4.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpb3gpwakq/tmp5jyb7qm4.template', '/tmp/tmpb3gpwakq/tmpg_vwg0_c.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpb3gpwakq/tmpg_vwg0_c.h 418s # basename: tmpg_vwg0_c.h 418s # enumeration-production 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-header 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-production 418s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 418s # valuenick: user 418s # valuenum: 4 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-tail 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 4 __main__.TestMkenums.test_deprecated_in_for 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpmgm_l4xg 418s # rspfile: False 418s # /tmp/tmpmgm_l4xg/tmp29tg1gon.h: 418s # typedef enum { 418s # 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) 418s # } GDBusServerFlags; 418s # 418s # /tmp/tmpmgm_l4xg/tmpcr8dvwqe.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmgm_l4xg/tmpcr8dvwqe.template', '/tmp/tmpmgm_l4xg/tmp29tg1gon.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpmgm_l4xg/tmp29tg1gon.h 418s # basename: tmp29tg1gon.h 418s # enumeration-production 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-header 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-production 418s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 418s # valuenick: user 418s # valuenum: 4 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # value-tail 418s # EnumName: GDBusServerFlags 418s # enum_name: g_dbus_server_flags 418s # ENUMNAME: G_DBUS_SERVER_FLAGS 418s # ENUMSHORT: DBUS_SERVER_FLAGS 418s # ENUMPREFIX: G 418s # enumsince: 418s # type: flags 418s # Type: Flags 418s # TYPE: FLAGS 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 5 __main__.TestMkenums.test_empty_header 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmphc_109qa 418s # rspfile: False 418s # /tmp/tmphc_109qa/tmp64azun88.h: 418s # /tmp/tmphc_109qa/tmpflv3hi9z.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmphc_109qa/tmpflv3hi9z.template', '/tmp/tmphc_109qa/tmp64azun88.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 6 __main__.TestMkenums.test_empty_template 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpg6w5sf67 418s # rspfile: False 418s # /tmp/tmpg6w5sf67/tmp8g9z8lrx.template: 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpg6w5sf67/tmp8g9z8lrx.template'] 418s # Return code: 0 418s # Output: 418s # /* 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. */ 418s # 418s # 418s # /* Generated data ends here */ 418s # Error: 418s ok 7 __main__.TestMkenums.test_enum_name 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpw66gsyhg 418s # rspfile: False 418s # /tmp/tmpw66gsyhg/tmpjxx8d66u.h: 418s # typedef enum _SomeEnumIdentifier { 418s # ENUM_VALUE 418s # } SomeEnumIdentifier; 418s # 418s # /tmp/tmpw66gsyhg/tmpajln00l5.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpw66gsyhg/tmpajln00l5.template', '/tmp/tmpw66gsyhg/tmpjxx8d66u.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpw66gsyhg/tmpjxx8d66u.h 418s # basename: tmpjxx8d66u.h 418s # enumeration-production 418s # EnumName: SomeEnumIdentifier 418s # enum_name: some_enum_identifier 418s # ENUMNAME: SOME_ENUM_IDENTIFIER 418s # ENUMSHORT: ENUM_IDENTIFIER 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-header 418s # EnumName: SomeEnumIdentifier 418s # enum_name: some_enum_identifier 418s # ENUMNAME: SOME_ENUM_IDENTIFIER 418s # ENUMSHORT: ENUM_IDENTIFIER 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-production 418s # VALUENAME: ENUM_VALUE 418s # valuenick: value 418s # valuenum: 0 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-tail 418s # EnumName: SomeEnumIdentifier 418s # enum_name: some_enum_identifier 418s # ENUMNAME: SOME_ENUM_IDENTIFIER 418s # ENUMSHORT: ENUM_IDENTIFIER 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 8 __main__.TestMkenums.test_enum_private_public 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpbvejeddi 418s # rspfile: False 418s # /tmp/tmpbvejeddi/tmppjd0aq19.h: 418s # typedef enum { 418s # ENUM_VALUE_PUBLIC1, 418s # /*< private >*/ 418s # ENUM_VALUE_PRIVATE, 418s # } SomeEnumA 418s # 418s # /tmp/tmpbvejeddi/tmp7apfvy8h.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpbvejeddi/tmp7apfvy8h.template', '/tmp/tmpbvejeddi/tmppjd0aq19.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpbvejeddi/tmppjd0aq19.h 418s # basename: tmppjd0aq19.h 418s # enumeration-production 418s # EnumName: SomeEnumA 418s # enum_name: some_enum_a 418s # ENUMNAME: SOME_ENUM_A 418s # ENUMSHORT: ENUM_A 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-header 418s # EnumName: SomeEnumA 418s # enum_name: some_enum_a 418s # ENUMNAME: SOME_ENUM_A 418s # ENUMSHORT: ENUM_A 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-production 418s # VALUENAME: ENUM_VALUE_PUBLIC1 418s # valuenick: public1 418s # valuenum: 0 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-tail 418s # EnumName: SomeEnumA 418s # enum_name: some_enum_a 418s # ENUMNAME: SOME_ENUM_A 418s # ENUMSHORT: ENUM_A 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s # 418s # /tmp/tmpbvejeddi/tmp_itw44hj.h: 418s # typedef enum { 418s # /*< private >*/ 418s # ENUM_VALUE_PRIVATE, 418s # /*< public >*/ 418s # ENUM_VALUE_PUBLIC2, 418s # } SomeEnumB; 418s # 418s # /tmp/tmpbvejeddi/tmpkir_gbt_.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpbvejeddi/tmpkir_gbt_.template', '/tmp/tmpbvejeddi/tmp_itw44hj.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpbvejeddi/tmp_itw44hj.h 418s # basename: tmp_itw44hj.h 418s # enumeration-production 418s # EnumName: SomeEnumB 418s # enum_name: some_enum_b 418s # ENUMNAME: SOME_ENUM_B 418s # ENUMSHORT: ENUM_B 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-header 418s # EnumName: SomeEnumB 418s # enum_name: some_enum_b 418s # ENUMNAME: SOME_ENUM_B 418s # ENUMSHORT: ENUM_B 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-production 418s # VALUENAME: ENUM_VALUE_PUBLIC2 418s # valuenick: public2 418s # valuenum: 1 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-tail 418s # EnumName: SomeEnumB 418s # enum_name: some_enum_b 418s # ENUMNAME: SOME_ENUM_B 418s # ENUMSHORT: ENUM_B 418s # ENUMPREFIX: SOME 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 418s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 418s # glib-mkenums: /usr/bin/glib-mkenums 418s # tmpdir: /tmp/tmpbl00tn1p 418s # rspfile: False 418s # /tmp/tmpbl00tn1p/tmpafo_6etu.h: 418s # typedef enum { 418s # /*< private >*/ 418s # ENUM_VALUE_PRIVATE = 5, 418s # /*< public >*/ 418s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 418s # } TestSymbolicEnum; 418s # 418s # /tmp/tmpbl00tn1p/tmpfidbajs1.template: 418s # /*** BEGIN file-header ***/ 418s # file-header 418s # /*** END file-header ***/ 418s # 418s # /*** BEGIN file-production ***/ 418s # file-production 418s # filename: @filename@ 418s # basename: @basename@ 418s # /*** END file-production ***/ 418s # 418s # /*** BEGIN enumeration-production ***/ 418s # enumeration-production 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END enumeration-production ***/ 418s # 418s # /*** BEGIN value-header ***/ 418s # value-header 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-header ***/ 418s # 418s # /*** BEGIN value-production ***/ 418s # value-production 418s # VALUENAME: @VALUENAME@ 418s # valuenick: @valuenick@ 418s # valuenum: @valuenum@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-production ***/ 418s # 418s # /*** BEGIN value-tail ***/ 418s # value-tail 418s # EnumName: @EnumName@ 418s # enum_name: @enum_name@ 418s # ENUMNAME: @ENUMNAME@ 418s # ENUMSHORT: @ENUMSHORT@ 418s # ENUMPREFIX: @ENUMPREFIX@ 418s # enumsince: @enumsince@ 418s # type: @type@ 418s # Type: @Type@ 418s # TYPE: @TYPE@ 418s # /*** END value-tail ***/ 418s # 418s # /*** BEGIN comment ***/ 418s # comment 418s # comment: @comment@ 418s # /*** END comment ***/ 418s # 418s # /*** BEGIN file-tail ***/ 418s # file-tail 418s # /*** END file-tail ***/ 418s # 418s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpbl00tn1p/tmpfidbajs1.template', '/tmp/tmpbl00tn1p/tmpafo_6etu.h'] 418s # Return code: 0 418s # Output: 418s # comment 418s # 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. 418s # 418s # 418s # file-header 418s # file-production 418s # filename: /tmp/tmpbl00tn1p/tmpafo_6etu.h 418s # basename: tmpafo_6etu.h 418s # enumeration-production 418s # EnumName: TestSymbolicEnum 418s # enum_name: test_symbolic_enum 418s # ENUMNAME: TEST_SYMBOLIC_ENUM 418s # ENUMSHORT: SYMBOLIC_ENUM 418s # ENUMPREFIX: TEST 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-header 418s # EnumName: TestSymbolicEnum 418s # enum_name: test_symbolic_enum 418s # ENUMNAME: TEST_SYMBOLIC_ENUM 418s # ENUMSHORT: SYMBOLIC_ENUM 418s # ENUMPREFIX: TEST 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-production 418s # VALUENAME: ENUM_VALUE_PUBLIC 418s # valuenick: public 418s # valuenum: 7 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # value-tail 418s # EnumName: TestSymbolicEnum 418s # enum_name: test_symbolic_enum 418s # ENUMNAME: TEST_SYMBOLIC_ENUM 418s # ENUMSHORT: SYMBOLIC_ENUM 418s # ENUMPREFIX: TEST 418s # enumsince: 418s # type: enum 418s # Type: Enum 418s # TYPE: ENUM 418s # file-tail 418s # 418s # comment 418s # comment: Generated data ends here 418s # Error: 419s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpnyvteoa8 419s # rspfile: False 419s # /tmp/tmpnyvteoa8/tmpync7xo6v.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-tail ***/ 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpnyvteoa8/tmpync7xo6v.template'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # filename: @filename@ 419s # basename: @basename@ 419s # file-tail 419s # filename: @filename@ 419s # basename: @basename@ 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s # WARNING: @filename@ used in file-header section. 419s # WARNING: @basename@ used in file-header section. 419s # WARNING: @filename@ used in file-tail section. 419s # WARNING: @basename@ used in file-tail section. 419s ok 11 __main__.TestMkenums.test_help 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpc_04o440 419s # rspfile: False 419s # Running: ['/usr/bin/glib-mkenums', '--help'] 419s # Return code: 0 419s # Output: 419s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 419s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 419s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 419s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 419s # [--comments COMMENT_TMPL] [--template TEMPLATE] 419s # [--output OUTPUT] [--version] 419s # [args ...] 419s # 419s # positional arguments: 419s # args One or more input files, or a single argument 419s # @rspfile_path pointing to a file that contains the 419s # actual arguments 419s # 419s # options: 419s # -h, --help show this help message and exit 419s # --identifier-prefix IDPREFIX 419s # Identifier prefix 419s # --symbol-prefix SYMPREFIX 419s # Symbol prefix 419s # --fhead FHEAD Output file header 419s # --ftail FTAIL Output file footer 419s # --fprod FPROD Put out TEXT every time a new input file is being 419s # processed. 419s # --eprod EPROD Per enum text, produced prior to value iterations 419s # --vhead VHEAD Value header, produced before iterating over enum 419s # values 419s # --vprod VPROD Value text, produced for each enum value. 419s # --vtail VTAIL Value tail, produced after iterating over enum values 419s # --comments COMMENT_TMPL 419s # Comment structure 419s # --template TEMPLATE Template file 419s # --output OUTPUT 419s # --version, -v Print version information 419s # 419s # Production text substitutions: 419s # @EnumName@ PrefixTheXEnum 419s # @enum_name@ prefix_the_xenum 419s # @ENUMNAME@ PREFIX_THE_XENUM 419s # @ENUMSHORT@ THE_XENUM 419s # @ENUMPREFIX@ PREFIX 419s # @enumsince@ the user-provided since value given 419s # @VALUENAME@ PREFIX_THE_XVALUE 419s # @valuenick@ the-xvalue 419s # @valuenum@ the integer value (limited support, Since: 2.26) 419s # @type@ either enum or flags 419s # @Type@ either Enum or Flags 419s # @TYPE@ either ENUM or FLAGS 419s # @filename@ name of current input file 419s # @basename@ base name of the current input file (Since: 2.22) 419s # Error: 419s ok 12 __main__.TestMkenums.test_no_args 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp5cdrp21y 419s # rspfile: False 419s # Running: ['/usr/bin/glib-mkenums'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s ok 13 __main__.TestMkenums.test_no_headers 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpi46qyq1d 419s # rspfile: False 419s # /tmp/tmpi46qyq1d/tmp9o6owj3b.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpi46qyq1d/tmp9o6owj3b.template'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 14 __main__.TestMkenums.test_no_nick 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp2kflubjd 419s # rspfile: False 419s # /tmp/tmp2kflubjd/tmptkcg7aee.h: 419s # typedef enum { 419s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 419s # } GeglSamplerType; 419s # 419s # /tmp/tmp2kflubjd/tmpv58p9qze.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp2kflubjd/tmpv58p9qze.template', '/tmp/tmp2kflubjd/tmptkcg7aee.h'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmp2kflubjd/tmptkcg7aee.h 419s # basename: tmptkcg7aee.h 419s # enumeration-production 419s # EnumName: GeglSamplerType 419s # enum_name: gegl_sampler_type 419s # ENUMNAME: GEGL_SAMPLER_TYPE 419s # ENUMSHORT: SAMPLER_TYPE 419s # ENUMPREFIX: GEGL 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: GeglSamplerType 419s # enum_name: gegl_sampler_type 419s # ENUMNAME: GEGL_SAMPLER_TYPE 419s # ENUMSHORT: SAMPLER_TYPE 419s # ENUMPREFIX: GEGL 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: GEGL_SAMPLER_NEAREST 419s # valuenick: nearest 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: GeglSamplerType 419s # enum_name: gegl_sampler_type 419s # ENUMNAME: GEGL_SAMPLER_TYPE 419s # ENUMSHORT: SAMPLER_TYPE 419s # ENUMPREFIX: GEGL 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 15 __main__.TestMkenums.test_non_utf8_encoding 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpxq543wks 419s # rspfile: False 419s # /tmp/tmpxq543wks/tmpyp40byij.h: 419s # /* Copyright © La Peña */ 419s # typedef enum { 419s # ENUM_VALUE 419s # } SomeEnumIdentifier; 419s # 419s # /tmp/tmpxq543wks/tmpiufn9txf.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpxq543wks/tmpiufn9txf.template', '/tmp/tmpxq543wks/tmpyp40byij.h'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpxq543wks/tmpyp40byij.h 419s # basename: tmpyp40byij.h 419s # enumeration-production 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE 419s # valuenick: value 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 419s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 419s ok 16 __main__.TestMkenums.test_reproducible 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmposh9qu39 419s # rspfile: False 419s # /tmp/tmposh9qu39/tmpn44_qk91.template: template 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmposh9qu39/tmpn44_qk91.template', '/tmp/tmposh9qu39/tmp3ob9rqo01.h', '/tmp/tmposh9qu39/tmprzmh4tpn2.h'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s # 419s # /tmp/tmposh9qu39/tmpsnna3ws5.template: template 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmposh9qu39/tmpsnna3ws5.template', '/tmp/tmposh9qu39/tmprzmh4tpn2.h', '/tmp/tmposh9qu39/tmp3ob9rqo01.h'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s # Executing: glib/mkenums.py.test 419s ok 17 __main__.TestMkenums.test_since 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp32jxu2dm 419s # rspfile: False 419s # /tmp/tmp32jxu2dm/tmp7bpvzarw.h: 419s # typedef enum { /*< since=1.0 >*/ 419s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 419s # } QmiWmsMessageProtocol; 419s # 419s # /tmp/tmp32jxu2dm/tmpwnkg4twf.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp32jxu2dm/tmpwnkg4twf.template', '/tmp/tmp32jxu2dm/tmp7bpvzarw.h'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmp32jxu2dm/tmp7bpvzarw.h 419s # basename: tmp7bpvzarw.h 419s # enumeration-production 419s # EnumName: QmiWmsMessageProtocol 419s # enum_name: qmi_wms_message_protocol 419s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 419s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 419s # ENUMPREFIX: QMI 419s # enumsince: 1.0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: QmiWmsMessageProtocol 419s # enum_name: qmi_wms_message_protocol 419s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 419s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 419s # ENUMPREFIX: QMI 419s # enumsince: 1.0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 419s # valuenick: cdma 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: QmiWmsMessageProtocol 419s # enum_name: qmi_wms_message_protocol 419s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 419s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 419s # ENUMPREFIX: QMI 419s # enumsince: 1.0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 18 __main__.TestMkenums.test_with_double_quotes 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpcusvf5n9 419s # rspfile: False 419s # /tmp/tmpcusvf5n9/tmpukstfegf.h: 419s # typedef enum { 419s # FOO_VALUE /*< nick="eek, a comma" >*/ 419s # } Foo; 419s # 419s # /tmp/tmpcusvf5n9/tmpaq3e_f5q.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpcusvf5n9/tmpaq3e_f5q.template', '/tmp/tmpcusvf5n9/tmpukstfegf.h'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpcusvf5n9/tmpukstfegf.h 419s # basename: tmpukstfegf.h 419s # enumeration-production 419s # EnumName: Foo 419s # enum_name: foo_ 419s # ENUMNAME: FOO_ 419s # ENUMSHORT: 419s # ENUMPREFIX: FOO 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: Foo 419s # enum_name: foo_ 419s # ENUMNAME: FOO_ 419s # ENUMSHORT: 419s # ENUMPREFIX: FOO 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: FOO_VALUE 419s # valuenick: eek, a comma 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: Foo 419s # enum_name: foo_ 419s # ENUMNAME: FOO_ 419s # ENUMSHORT: 419s # ENUMPREFIX: FOO 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 19 __main__.TestRspMkenums.test_available_in 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp_7qkx9b5 419s # rspfile: True 419s # /tmp/tmp_7qkx9b5/tmphz891zj_.h: 419s # typedef enum { 419s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 419s # } GDBusServerFlags; 419s # 419s # /tmp/tmp_7qkx9b5/tmpzsz72do2.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmp_7qkx9b5/tmpzsz72do2.template /tmp/tmp_7qkx9b5/tmphz891zj_.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_7qkx9b5/tmprqlon_ta'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmp_7qkx9b5/tmphz891zj_.h 419s # basename: tmphz891zj_.h 419s # enumeration-production 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-header 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-production 419s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 419s # valuenick: user 419s # valuenum: 4 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-tail 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpcykkuc7g 419s # rspfile: True 419s # /tmp/tmpcykkuc7g/tmpbrfban0z.h: 419s # typedef enum { 419s # ENUM_VALUE_WITH_COMMA = ',', 419s # } TestCommaEnum; 419s # 419s # /tmp/tmpcykkuc7g/tmphexjmjpy.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpcykkuc7g/tmphexjmjpy.template /tmp/tmpcykkuc7g/tmpbrfban0z.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpcykkuc7g/tmpsqus0lor'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpcykkuc7g/tmpbrfban0z.h 419s # basename: tmpbrfban0z.h 419s # enumeration-production 419s # EnumName: TestCommaEnum 419s # enum_name: test_comma_enum 419s # ENUMNAME: TEST_COMMA_ENUM 419s # ENUMSHORT: COMMA_ENUM 419s # ENUMPREFIX: TEST 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: TestCommaEnum 419s # enum_name: test_comma_enum 419s # ENUMNAME: TEST_COMMA_ENUM 419s # ENUMSHORT: COMMA_ENUM 419s # ENUMPREFIX: TEST 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE_WITH_COMMA 419s # valuenick: comma 419s # valuenum: 44 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: TestCommaEnum 419s # enum_name: test_comma_enum 419s # ENUMNAME: TEST_COMMA_ENUM 419s # ENUMSHORT: COMMA_ENUM 419s # ENUMPREFIX: TEST 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 21 __main__.TestRspMkenums.test_deprecated_in 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpxvg6b87s 419s # rspfile: True 419s # /tmp/tmpxvg6b87s/tmpjuew3xpl.h: 419s # typedef enum { 419s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 419s # } GDBusServerFlags; 419s # 419s # /tmp/tmpxvg6b87s/tmp92_f82hv.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpxvg6b87s/tmp92_f82hv.template /tmp/tmpxvg6b87s/tmpjuew3xpl.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpxvg6b87s/tmpk6xxftum'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpxvg6b87s/tmpjuew3xpl.h 419s # basename: tmpjuew3xpl.h 419s # enumeration-production 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-header 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-production 419s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 419s # valuenick: user 419s # valuenum: 4 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-tail 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpi3qdi0w_ 419s # rspfile: True 419s # /tmp/tmpi3qdi0w_/tmp_s5brg1f.h: 419s # typedef enum { 419s # 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) 419s # } GDBusServerFlags; 419s # 419s # /tmp/tmpi3qdi0w_/tmpisg41w4q.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpi3qdi0w_/tmpisg41w4q.template /tmp/tmpi3qdi0w_/tmp_s5brg1f.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpi3qdi0w_/tmpv0fql4si'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpi3qdi0w_/tmp_s5brg1f.h 419s # basename: tmp_s5brg1f.h 419s # enumeration-production 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-header 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-production 419s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 419s # valuenick: user 419s # valuenum: 4 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # value-tail 419s # EnumName: GDBusServerFlags 419s # enum_name: g_dbus_server_flags 419s # ENUMNAME: G_DBUS_SERVER_FLAGS 419s # ENUMSHORT: DBUS_SERVER_FLAGS 419s # ENUMPREFIX: G 419s # enumsince: 419s # type: flags 419s # Type: Flags 419s # TYPE: FLAGS 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 23 __main__.TestRspMkenums.test_empty_header 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpag830j44 419s # rspfile: True 419s # /tmp/tmpag830j44/tmpyk0ye6u2.h: 419s # /tmp/tmpag830j44/tmp8u2jctob.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpag830j44/tmp8u2jctob.template /tmp/tmpag830j44/tmpyk0ye6u2.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpag830j44/tmpiogrrbre'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 24 __main__.TestRspMkenums.test_empty_template 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpzwqz85e9 419s # rspfile: True 419s # /tmp/tmpzwqz85e9/tmp_6ovl2zi.template: 419s # Response file contains: --template /tmp/tmpzwqz85e9/tmp_6ovl2zi.template 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpzwqz85e9/tmpfwhqf9vn'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s ok 25 __main__.TestRspMkenums.test_enum_name 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpv3uh_t6q 419s # rspfile: True 419s # /tmp/tmpv3uh_t6q/tmp_8b60ll0.h: 419s # typedef enum _SomeEnumIdentifier { 419s # ENUM_VALUE 419s # } SomeEnumIdentifier; 419s # 419s # /tmp/tmpv3uh_t6q/tmp5oeuu6_3.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpv3uh_t6q/tmp5oeuu6_3.template /tmp/tmpv3uh_t6q/tmp_8b60ll0.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpv3uh_t6q/tmpf4mzoufq'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpv3uh_t6q/tmp_8b60ll0.h 419s # basename: tmp_8b60ll0.h 419s # enumeration-production 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE 419s # valuenick: value 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 26 __main__.TestRspMkenums.test_enum_private_public 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp39x69yht 419s # rspfile: True 419s # /tmp/tmp39x69yht/tmp6_k15xkk.h: 419s # typedef enum { 419s # ENUM_VALUE_PUBLIC1, 419s # /*< private >*/ 419s # ENUM_VALUE_PRIVATE, 419s # } SomeEnumA 419s # 419s # /tmp/tmp39x69yht/tmpw32kmpiz.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmp39x69yht/tmpw32kmpiz.template /tmp/tmp39x69yht/tmp6_k15xkk.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp39x69yht/tmpazb5n__z'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmp39x69yht/tmp6_k15xkk.h 419s # basename: tmp6_k15xkk.h 419s # enumeration-production 419s # EnumName: SomeEnumA 419s # enum_name: some_enum_a 419s # ENUMNAME: SOME_ENUM_A 419s # ENUMSHORT: ENUM_A 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: SomeEnumA 419s # enum_name: some_enum_a 419s # ENUMNAME: SOME_ENUM_A 419s # ENUMSHORT: ENUM_A 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE_PUBLIC1 419s # valuenick: public1 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: SomeEnumA 419s # enum_name: some_enum_a 419s # ENUMNAME: SOME_ENUM_A 419s # ENUMSHORT: ENUM_A 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s # 419s # /tmp/tmp39x69yht/tmpb0rdfobe.h: 419s # typedef enum { 419s # /*< private >*/ 419s # ENUM_VALUE_PRIVATE, 419s # /*< public >*/ 419s # ENUM_VALUE_PUBLIC2, 419s # } SomeEnumB; 419s # 419s # /tmp/tmp39x69yht/tmpj29qyitd.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmp39x69yht/tmpj29qyitd.template /tmp/tmp39x69yht/tmpb0rdfobe.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp39x69yht/tmp43eu4d4c'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmp39x69yht/tmpb0rdfobe.h 419s # basename: tmpb0rdfobe.h 419s # enumeration-production 419s # EnumName: SomeEnumB 419s # enum_name: some_enum_b 419s # ENUMNAME: SOME_ENUM_B 419s # ENUMSHORT: ENUM_B 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: SomeEnumB 419s # enum_name: some_enum_b 419s # ENUMNAME: SOME_ENUM_B 419s # ENUMSHORT: ENUM_B 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE_PUBLIC2 419s # valuenick: public2 419s # valuenum: 1 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: SomeEnumB 419s # enum_name: some_enum_b 419s # ENUMNAME: SOME_ENUM_B 419s # ENUMSHORT: ENUM_B 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpeba1qa6i 419s # rspfile: True 419s # /tmp/tmpeba1qa6i/tmp0ades1pe.h: 419s # typedef enum { 419s # /*< private >*/ 419s # ENUM_VALUE_PRIVATE = 5, 419s # /*< public >*/ 419s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 419s # } TestSymbolicEnum; 419s # 419s # /tmp/tmpeba1qa6i/tmp3kyrafc_.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpeba1qa6i/tmp3kyrafc_.template /tmp/tmpeba1qa6i/tmp0ades1pe.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpeba1qa6i/tmpd1lrkuc3'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpeba1qa6i/tmp0ades1pe.h 419s # basename: tmp0ades1pe.h 419s # enumeration-production 419s # EnumName: TestSymbolicEnum 419s # enum_name: test_symbolic_enum 419s # ENUMNAME: TEST_SYMBOLIC_ENUM 419s # ENUMSHORT: SYMBOLIC_ENUM 419s # ENUMPREFIX: TEST 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: TestSymbolicEnum 419s # enum_name: test_symbolic_enum 419s # ENUMNAME: TEST_SYMBOLIC_ENUM 419s # ENUMSHORT: SYMBOLIC_ENUM 419s # ENUMPREFIX: TEST 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE_PUBLIC 419s # valuenick: public 419s # valuenum: 7 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: TestSymbolicEnum 419s # enum_name: test_symbolic_enum 419s # ENUMNAME: TEST_SYMBOLIC_ENUM 419s # ENUMSHORT: SYMBOLIC_ENUM 419s # ENUMPREFIX: TEST 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp4qymhuyn 419s # rspfile: True 419s # /tmp/tmp4qymhuyn/tmptb7h6vb1.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-tail ***/ 419s # Response file contains: --template /tmp/tmp4qymhuyn/tmptb7h6vb1.template 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp4qymhuyn/tmptucpt5dn'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # filename: @filename@ 419s # basename: @basename@ 419s # file-tail 419s # filename: @filename@ 419s # basename: @basename@ 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s # WARNING: @filename@ used in file-header section. 419s # WARNING: @basename@ used in file-header section. 419s # WARNING: @filename@ used in file-tail section. 419s # WARNING: @basename@ used in file-tail section. 419s ok 29 __main__.TestRspMkenums.test_help 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpqfaknteg 419s # rspfile: True 419s # Response file contains: --help 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqfaknteg/tmp6j_t5a3p'] 419s # Return code: 0 419s # Output: 419s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 419s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 419s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 419s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 419s # [--comments COMMENT_TMPL] [--template TEMPLATE] 419s # [--output OUTPUT] [--version] 419s # [args ...] 419s # 419s # positional arguments: 419s # args One or more input files, or a single argument 419s # @rspfile_path pointing to a file that contains the 419s # actual arguments 419s # 419s # options: 419s # -h, --help show this help message and exit 419s # --identifier-prefix IDPREFIX 419s # Identifier prefix 419s # --symbol-prefix SYMPREFIX 419s # Symbol prefix 419s # --fhead FHEAD Output file header 419s # --ftail FTAIL Output file footer 419s # --fprod FPROD Put out TEXT every time a new input file is being 419s # processed. 419s # --eprod EPROD Per enum text, produced prior to value iterations 419s # --vhead VHEAD Value header, produced before iterating over enum 419s # values 419s # --vprod VPROD Value text, produced for each enum value. 419s # --vtail VTAIL Value tail, produced after iterating over enum values 419s # --comments COMMENT_TMPL 419s # Comment structure 419s # --template TEMPLATE Template file 419s # --output OUTPUT 419s # --version, -v Print version information 419s # 419s # Production text substitutions: 419s # @EnumName@ PrefixTheXEnum 419s # @enum_name@ prefix_the_xenum 419s # @ENUMNAME@ PREFIX_THE_XENUM 419s # @ENUMSHORT@ THE_XENUM 419s # @ENUMPREFIX@ PREFIX 419s # @enumsince@ the user-provided since value given 419s # @VALUENAME@ PREFIX_THE_XVALUE 419s # @valuenick@ the-xvalue 419s # @valuenum@ the integer value (limited support, Since: 2.26) 419s # @type@ either enum or flags 419s # @Type@ either Enum or Flags 419s # @TYPE@ either ENUM or FLAGS 419s # @filename@ name of current input file 419s # @basename@ base name of the current input file (Since: 2.22) 419s # Error: 419s ok 30 __main__.TestRspMkenums.test_no_args 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp3vyep9n5 419s # rspfile: True 419s # Response file contains: 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3vyep9n5/tmpb4a7gmps'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s ok 31 __main__.TestRspMkenums.test_no_headers 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpx57jnjcf 419s # rspfile: True 419s # /tmp/tmpx57jnjcf/tmp2mcb1baa.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpx57jnjcf/tmp2mcb1baa.template 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpx57jnjcf/tmpsgukakhw'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 32 __main__.TestRspMkenums.test_no_nick 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmp_iqo9x_f 419s # rspfile: True 419s # /tmp/tmp_iqo9x_f/tmp2qusi81c.h: 419s # typedef enum { 419s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 419s # } GeglSamplerType; 419s # 419s # /tmp/tmp_iqo9x_f/tmpvwam3_5n.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmp_iqo9x_f/tmpvwam3_5n.template /tmp/tmp_iqo9x_f/tmp2qusi81c.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_iqo9x_f/tmp9cvxrvfa'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmp_iqo9x_f/tmp2qusi81c.h 419s # basename: tmp2qusi81c.h 419s # enumeration-production 419s # EnumName: GeglSamplerType 419s # enum_name: gegl_sampler_type 419s # ENUMNAME: GEGL_SAMPLER_TYPE 419s # ENUMSHORT: SAMPLER_TYPE 419s # ENUMPREFIX: GEGL 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: GeglSamplerType 419s # enum_name: gegl_sampler_type 419s # ENUMNAME: GEGL_SAMPLER_TYPE 419s # ENUMSHORT: SAMPLER_TYPE 419s # ENUMPREFIX: GEGL 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: GEGL_SAMPLER_NEAREST 419s # valuenick: nearest 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: GeglSamplerType 419s # enum_name: gegl_sampler_type 419s # ENUMNAME: GEGL_SAMPLER_TYPE 419s # ENUMSHORT: SAMPLER_TYPE 419s # ENUMPREFIX: GEGL 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmppv7d11bh 419s # rspfile: True 419s # /tmp/tmppv7d11bh/tmp002uywbv.h: 419s # /* Copyright © La Peña */ 419s # typedef enum { 419s # ENUM_VALUE 419s # } SomeEnumIdentifier; 419s # 419s # /tmp/tmppv7d11bh/tmpzzl7m5sr.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmppv7d11bh/tmpzzl7m5sr.template /tmp/tmppv7d11bh/tmp002uywbv.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppv7d11bh/tmpuwnuikm5'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmppv7d11bh/tmp002uywbv.h 419s # basename: tmp002uywbv.h 419s # enumeration-production 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: ENUM_VALUE 419s # valuenick: value 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: SomeEnumIdentifier 419s # enum_name: some_enum_identifier 419s # ENUMNAME: SOME_ENUM_IDENTIFIER 419s # ENUMSHORT: ENUM_IDENTIFIER 419s # ENUMPREFIX: SOME 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 419s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 419s ok 34 __main__.TestRspMkenums.test_reproducible 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmphpqzpao3 419s # rspfile: True 419s # /tmp/tmphpqzpao3/tmpo5i572e9.template: template 419s # Response file contains: --template /tmp/tmphpqzpao3/tmpo5i572e9.template /tmp/tmphpqzpao3/tmppqpxa32l1.h /tmp/tmphpqzpao3/tmpxasvepjx2.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphpqzpao3/tmpu427sc9q'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s # 419s # /tmp/tmphpqzpao3/tmpg26couv7.template: template 419s # Response file contains: --template /tmp/tmphpqzpao3/tmpg26couv7.template /tmp/tmphpqzpao3/tmpxasvepjx2.h /tmp/tmphpqzpao3/tmppqpxa32l1.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphpqzpao3/tmp7sso88kl'] 419s # Return code: 0 419s # Output: 419s # /* 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. */ 419s # 419s # 419s # /* Generated data ends here */ 419s # Error: 419s ok 35 __main__.TestRspMkenums.test_since 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmpkekldhaa 419s # rspfile: True 419s # /tmp/tmpkekldhaa/tmpn4n3fnkc.h: 419s # typedef enum { /*< since=1.0 >*/ 419s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 419s # } QmiWmsMessageProtocol; 419s # 419s # /tmp/tmpkekldhaa/tmpx5hsqk3v.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmpkekldhaa/tmpx5hsqk3v.template /tmp/tmpkekldhaa/tmpn4n3fnkc.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkekldhaa/tmp6mecv5rn'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmpkekldhaa/tmpn4n3fnkc.h 419s # basename: tmpn4n3fnkc.h 419s # enumeration-production 419s # EnumName: QmiWmsMessageProtocol 419s # enum_name: qmi_wms_message_protocol 419s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 419s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 419s # ENUMPREFIX: QMI 419s # enumsince: 1.0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: QmiWmsMessageProtocol 419s # enum_name: qmi_wms_message_protocol 419s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 419s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 419s # ENUMPREFIX: QMI 419s # enumsince: 1.0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 419s # valuenick: cdma 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: QmiWmsMessageProtocol 419s # enum_name: qmi_wms_message_protocol 419s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 419s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 419s # ENUMPREFIX: QMI 419s # enumsince: 1.0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s ok 36 __main__.TestRspMkenums.test_with_double_quotes 419s # glib-mkenums: /usr/bin/glib-mkenums 419s # tmpdir: /tmp/tmplfhavdyr 419s # rspfile: True 419s # /tmp/tmplfhavdyr/tmpuyv_h7xl.h: 419s # typedef enum { 419s # FOO_VALUE /*< nick="eek, a comma" >*/ 419s # } Foo; 419s # 419s # /tmp/tmplfhavdyr/tmpkdtd5pe4.template: 419s # /*** BEGIN file-header ***/ 419s # file-header 419s # /*** END file-header ***/ 419s # 419s # /*** BEGIN file-production ***/ 419s # file-production 419s # filename: @filename@ 419s # basename: @basename@ 419s # /*** END file-production ***/ 419s # 419s # /*** BEGIN enumeration-production ***/ 419s # enumeration-production 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END enumeration-production ***/ 419s # 419s # /*** BEGIN value-header ***/ 419s # value-header 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-header ***/ 419s # 419s # /*** BEGIN value-production ***/ 419s # value-production 419s # VALUENAME: @VALUENAME@ 419s # valuenick: @valuenick@ 419s # valuenum: @valuenum@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-production ***/ 419s # 419s # /*** BEGIN value-tail ***/ 419s # value-tail 419s # EnumName: @EnumName@ 419s # enum_name: @enum_name@ 419s # ENUMNAME: @ENUMNAME@ 419s # ENUMSHORT: @ENUMSHORT@ 419s # ENUMPREFIX: @ENUMPREFIX@ 419s # enumsince: @enumsince@ 419s # type: @type@ 419s # Type: @Type@ 419s # TYPE: @TYPE@ 419s # /*** END value-tail ***/ 419s # 419s # /*** BEGIN comment ***/ 419s # comment 419s # comment: @comment@ 419s # /*** END comment ***/ 419s # 419s # /*** BEGIN file-tail ***/ 419s # file-tail 419s # /*** END file-tail ***/ 419s # 419s # Response file contains: --template /tmp/tmplfhavdyr/tmpkdtd5pe4.template /tmp/tmplfhavdyr/tmpuyv_h7xl.h 419s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmplfhavdyr/tmpx8qht3d8'] 419s # Return code: 0 419s # Output: 419s # comment 419s # 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. 419s # 419s # 419s # file-header 419s # file-production 419s # filename: /tmp/tmplfhavdyr/tmpuyv_h7xl.h 419s # basename: tmpuyv_h7xl.h 419s # enumeration-production 419s # EnumName: Foo 419s # enum_name: foo_ 419s # ENUMNAME: FOO_ 419s # ENUMSHORT: 419s # ENUMPREFIX: FOO 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-header 419s # EnumName: Foo 419s # enum_name: foo_ 419s # ENUMNAME: FOO_ 419s # ENUMSHORT: 419s # ENUMPREFIX: FOO 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-production 419s # VALUENAME: FOO_VALUE 419s # valuenick: eek, a comma 419s # valuenum: 0 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # value-tail 419s # EnumName: Foo 419s # enum_name: foo_ 419s # ENUMNAME: FOO_ 419s # ENUMSHORT: 419s # ENUMPREFIX: FOO 419s # enumsince: 419s # type: enum 419s # Type: Enum 419s # TYPE: ENUM 419s # file-tail 419s # 419s # comment 419s # comment: Generated data ends here 419s # Error: 419s 1..36 419s ok - glib/mkenums.py.test 419s # Running test: glib/async-splice-output-stream.test 419s TAP version 14 419s # random seed: R02Sc359127267addd7bf9b797ca4dea7b82 419s 1..5 419s # Start of async-splice tests 419s ok 1 /async-splice/copy-chunks 419s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 419s ok 2 /async-splice/copy-chunks-threaded-input 419s ok 3 /async-splice/copy-chunks-threaded-output 419s ok 4 /async-splice/copy-chunks-threaded 419s ok 5 /async-splice/cancelled 419s # End of async-splice tests 419s ok - glib/async-splice-output-stream.test 419s # Running test: glib/gdbus-non-socket.test 419s TAP version 14 419s # random seed: R02S33a6878e64d4e2c6bbb5985d00eb69ce 419s 1..1 419s # Start of gdbus tests 419s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/home 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/cache 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/system-config2 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/config 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/system-data2 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/data 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/state 419s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_AMGLE3/gdbus/non-socket/.dirs/runtime 419s ok - glib/gdbus-non-socket.test 419s ok 1 /gdbus/non-socket 419s # End of gdbus tests 419s # Running test: glib/signals-refcount2.test 419s TAP version 14 419s # random seed: R02S0888541a54af2e840688d9fc5af0163b 419s 1..1 419s # Start of gobject tests 419s # Start of refcount tests 419s # init 0x57f1191b9490 419s # 419s # init 0x57f1191b1580 419s # 424s # Executing: glib/signals-refcount2.test 424s # dispose 0x57f1191b9490! 424s # 424s # dispose 0x57f1191b1580! 424s # 424s ok 1 /gobject/refcount/signals 424s # slow test /gobject/refcount/signals executed in 5.00 secs 424s # End of refcount tests 424s # End of gobject tests 424s ok - glib/signals-refcount2.test 424s # Running test: glib/protocol.test 424s TAP version 14 424s # random seed: R02Sde35fe3e2403168068a2bbd8e3a29e59 424s 1..9 424s # Start of glib tests 424s # Start of testing tests 424s # Start of protocol tests 424s ok 1 /glib/testing/protocol/debug 424s ok 2 /glib/testing/protocol/info 424s ok 3 /glib/testing/protocol/message 424s ok 4 /glib/testing/protocol/warning 424s ok 5 /glib/testing/protocol/critical 424s ok 6 /glib/testing/protocol/error 424s ok 7 /glib/testing/protocol/gtest-message 424s ok 8 /glib/testing/protocol/test-message 424s ok - glib/protocol.test 424s ok 9 /glib/testing/protocol/test-error 424s # End of protocol tests 424s # End of testing tests 424s # End of glib tests 424s # Running test: glib/throws.test 424s TAP version 14 424s # random seed: R02Sb008b981f9c36295b67ac765c794e4b9 424s 1..3 424s # Start of throws tests 424s ok - glib/throws.test 424s # Running test: glib/network-monitor.test 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_D5QLE3/throws/invoke-gerror/.dirs/runtime 424s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 424s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 424s ok 1 /throws/invoke-gerror 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_D5QLE3/throws/vfunc-can-throw-gerror/.dirs/runtime 424s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 424s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 424s ok 2 /throws/vfunc-can-throw-gerror 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_D5QLE3/throws/callback-can-throw-gerror/.dirs/runtime 424s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 424s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 424s ok 3 /throws/callback-can-throw-gerror 424s # End of throws tests 424s TAP version 14 424s # random seed: R02Sfb2d87c3a0f8c5a2a776bdbfb4d05170 424s 1..4 424s # Start of network-monitor tests 424s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 424s ok - glib/network-monitor.test 424s # Running test: glib/win32-appinfo.test 424s ok - glib/win32-appinfo.test 424s # Running test: glib/boxed.test 424s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 424s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 424s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 424s ok 1 /network-monitor/default 424s ok 2 /network-monitor/remove_default 424s ok 3 /network-monitor/add_networks 424s ok 4 /network-monitor/remove_networks 424s # End of network-monitor tests 424s TAP version 14 424s # random seed: R02S9d9918275468bcf97c633a67aac8f2f8 424s 1..5 424s # Start of appinfo tests 424s ok 1 /appinfo/utf16-strfuncs 424s ok 2 /appinfo/win32-extract-executable 424s ok 3 /appinfo/win32-rundll32-fixup 424s ok 4 /appinfo/win32-parse-filename 424s ok 5 /appinfo/win32-utf16-conversion-fail 424s # Start of subprocess tests 424s # End of subprocess tests 424s # End of appinfo tests 424s TAP version 14 424s # random seed: R02Sd55700ad22e4a62082bbbd76afaf1a06 424s 1..27 424s # Start of boxed tests 424s ok 1 /boxed/define 424s ok 2 /boxed/ownership 424s ok 3 /boxed/closure 424s ok 4 /boxed/date 424s ok 5 /boxed/value 424s ok 6 /boxed/string 424s ok 7 /boxed/hashtable 424s ok 8 /boxed/array 424s ok 9 /boxed/ptrarray 424s ok 10 /boxed/regex 424s ok 11 /boxed/varianttype 424s ok 12 /boxed/error 424s ok 13 /boxed/datetime 424s ok - glib/boxed.test 424s # Running test: glib/dump.test 424s ok 14 /boxed/matchinfo 424s ok 15 /boxed/keyfile 424s ok 16 /boxed/mainloop 424s ok 17 /boxed/maincontext 424s ok 18 /boxed/source 424s ok 19 /boxed/variantbuilder 424s ok 20 /boxed/timezone 424s ok 21 /boxed/pollfd 424s ok 22 /boxed/markup 424s ok 23 /boxed/thread 424s ok 24 /boxed/checksum 424s ok 25 /boxed/tree 424s ok 26 /boxed/patternspec 424s ok 27 /boxed/rand 424s # End of boxed tests 424s TAP version 14 424s # random seed: R02Sbe849253eb3db93b0ba159556ef92f3c 424s 1..4 424s # Start of dump tests 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_TU6LE3/dump/empty-file/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_TU6LE3/dump/empty-file/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_TU6LE3/dump/empty-file/.dirs/runtime 424s ok 1 /dump/empty-file 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_TU6LE3/dump/missing-get-type/.dirs/runtime 424s Invalid GType function: 'does_not_exist_get_type' 424s ok 2 /dump/missing-get-type 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_TU6LE3/dump/missing-quark/.dirs/runtime 424s Invalid error quark function: 'does_not_exist_error' 424s ok 3 /dump/missing-quark 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_TU6LE3/dump/basic/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_TU6LE3/dump/basic/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_TU6LE3/dump/basic/.dirs/system-config1:/tmp/test_dump_TU6LE3/dump/basic/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_TU6LE3/dump/basic/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_TU6LE3/dump/basic/.dirs/system-data1:/tmp/test_dump_TU6LE3/dump/basic/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_TU6LE3/dump/basic/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_TU6LE3/dump/basic/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_TU6LE3/dump/basic/.dirs/runtime 424s ok 4 /dump/basic 424s # End of dump tests 424s ok - glib/dump.test 424s # Running test: glib/gdbus-threading.test 424s ok - glib/gdbus-threading.test 424s # Running test: glib/autoptr.test 424s ok - glib/autoptr.test 424s # Running test: glib/g-icon.test 424s TAP version 14 424s # random seed: R02S12510378c7289a13180720bdaeca67df 424s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 424s TAP version 14 424s # random seed: R02Scd99e66a11803f4c0daf4476561ff4cc 424s 1..6 424s # Start of autoptr tests 424s ok 1 /autoptr/autoptr 424s ok 2 /autoptr/autoptr_steal 424s ok 3 /autoptr/autolist 424s ok 4 /autoptr/autoslist 424s ok 5 /autoptr/autoqueue 424s ok 6 /autoptr/autoclass 424s # End of autoptr tests 424s ok - glib/g-icon.test 424s # Running test: glib/module-test-library.test 424s TAP version 14 424s # random seed: R02S216cb2025418c028bf95955daf885733 424s 1..6 424s # Start of icons tests 424s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 424s ok 1 /icons/to-string 424s ok 2 /icons/serialize 424s ok 3 /icons/themed 424s ok 4 /icons/emblemed 424s ok 5 /icons/file 424s ok 6 /icons/bytes 424s # End of icons tests 424s TAP version 14 424s # random seed: R02S977e61814527799116647fe1be81c820 424s 1..3 424s # Start of module tests 424s ok 1 /module/basics 424s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 424s ok 2 /module/invalid-libtool-archive 424s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 424s ok 3 /module/local-binding 424s # End of module tests 424s ok - glib/module-test-library.test 424s # Running test: glib/power-profile-monitor.test 424s TAP version 14 424s # random seed: R02Sa0c23c18afebf3f5656f29a4b8603858 424s 1..1 424s ok - glib/power-profile-monitor.test 424s # Running test: glib/sort.test 424s ok - glib/sort.test 424s # Running test: glib/overflow-fallback.test 424s ok - glib/overflow-fallback.test 424s # Running test: glib/queue.test 424s # Start of power-profile-monitor tests 424s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 424s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 424s ok 1 /power-profile-monitor/default 424s # End of power-profile-monitor tests 424s TAP version 14 424s # random seed: R02Sbb5c0676973a9c1ede4e4b363f2b5af7 424s 1..5 424s # Start of sort tests 424s ok 1 /sort/basic 424s ok 2 /sort/zero-elements 424s ok 3 /sort/stable 424s ok 4 /sort/big 424s ok 5 /sort/deprecated 424s # End of sort tests 424s TAP version 14 424s # random seed: R02S350e14819bcb0c53a386638559aff76e 424s 1..6 424s # Start of glib tests 424s # Start of checked-math tests 424s ok 1 /glib/checked-math/guint-add 424s ok 2 /glib/checked-math/guint-mul 424s ok 3 /glib/checked-math/guint64-add 424s ok 4 /glib/checked-math/guint64-mul 424s ok 5 /glib/checked-math/gsize-add 424s ok 6 /glib/checked-math/gsize-mul 424s # End of checked-math tests 424s # End of glib tests 424s TAP version 14 424s # random seed: R02S2fd9c5cb97aed12127d6e5f8d6a23839 424s 1..12 424s # Start of queue tests 424s ok 1 /queue/basic 424s ok 2 /queue/copy 424s ok 3 /queue/off-by-one 424s ok 4 /queue/find-custom 424s ok 5 /queue/static 424s ok 6 /queue/clear 424s ok 7 /queue/free-full 424s ok 8 /queue/clear-full 424s ok 9 /queue/insert-sibling-link 424s ok 10 /queue/push-nth-link 424s # Start of clear-full tests 424s ok 11 /queue/clear-full/noop 424s # End of clear-full tests 424s # Start of random tests 424s ok 12 /queue/random/seed:678457719 424s # End of random tests 424s # End of queue tests 424s ok - glib/queue.test 424s # Running test: glib/testing.test 424s TAP version 14 424s # random seed: R02S091f1053155327990c598d7b5659f2bb 424s 1..1 424s # Start of assert tests 424s ok 1 /assert/finalize_object 424s # Start of finalize_object tests 424s # Start of subprocess tests 424s # End of subprocess tests 424s # End of finalize_object tests 424s # End of assert tests 424s ok - glib/testing.test 424s # Running test: glib/gdbus-method-invocation.test 424s TAP version 14 424s # random seed: R02S4a60fd5d1c5f749e3ca021827d32d09f 424s 1..1 424s # Start of gdbus tests 424s # Start of method-invocation tests 424s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/home 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/cache 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/system-config2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/config 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/system-data2 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/data 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/state 424s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_BEZZE3/gdbus/method-invocation/return/.dirs/runtime 424s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 424s # Calling org.freedesktop.DBus.Properties.Get 424s # Calling org.freedesktop.DBus.Properties.Get 424s # Calling org.freedesktop.DBus.Properties.Get 424s # Calling org.freedesktop.DBus.Properties.Set 424s # Calling org.freedesktop.DBus.Properties.GetAll 424s # Calling org.example.Foo.WrongReturnType 424s # Calling org.example.Foo.GetFDs 424s # Calling org.example.Foo.GetFDs 424s # Calling org.example.Foo.ReturnError 424s # Calling org.example.Foo.CloseBeforeReturning 424s ok 1 /gdbus/method-invocation/return 424s # End of method-invocation tests 424s # End of gdbus tests 424s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 424s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 424s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 424s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 424s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 424s ok - glib/gdbus-method-invocation.test 424s # Running test: glib/memory-monitor.test 424s TAP version 14 424s # random seed: R02S856426fe1295e3f34dbababd2ea97fcf 424s 1..1 424s # Start of memory-monitor tests 424s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 424s ok - glib/memory-monitor.test 424s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 424s ok 1 /memory-monitor/default 424s # End of memory-monitor tests 424s # Running test: glib/checksum.test 424s TAP version 14 424s # random seed: R02Sfbd889a2434db2a9b521b1d89c26b001 424s 1..1851 424s # Start of checksum tests 424s ok 1 /checksum/unsupported 424s # Start of MD5 tests 424s ok 2 /checksum/MD5/0 424s ok 3 /checksum/MD5/1 424s ok 4 /checksum/MD5/2 424s ok 5 /checksum/MD5/3 424s ok 6 /checksum/MD5/4 424s ok 7 /checksum/MD5/5 424s ok 8 /checksum/MD5/6 424s ok 9 /checksum/MD5/7 424s ok 10 /checksum/MD5/8 424s ok 11 /checksum/MD5/9 424s ok 12 /checksum/MD5/10 424s ok 13 /checksum/MD5/11 424s ok 14 /checksum/MD5/12 424s ok 15 /checksum/MD5/13 424s ok 16 /checksum/MD5/14 424s ok 17 /checksum/MD5/15 424s ok 18 /checksum/MD5/16 424s ok 19 /checksum/MD5/17 424s ok 20 /checksum/MD5/18 424s ok 21 /checksum/MD5/19 424s ok 22 /checksum/MD5/20 424s ok 23 /checksum/MD5/21 424s ok 24 /checksum/MD5/22 424s ok 25 /checksum/MD5/23 424s ok 26 /checksum/MD5/24 424s ok 27 /checksum/MD5/25 424s ok 28 /checksum/MD5/26 424s ok 29 /checksum/MD5/27 424s ok 30 /checksum/MD5/28 424s ok 31 /checksum/MD5/29 424s ok 32 /checksum/MD5/30 424s ok 33 /checksum/MD5/31 424s ok 34 /checksum/MD5/32 424s ok 35 /checksum/MD5/33 424s ok 36 /checksum/MD5/34 424s ok 37 /checksum/MD5/35 424s ok 38 /checksum/MD5/36 424s ok 39 /checksum/MD5/37 424s ok 40 /checksum/MD5/38 424s ok 41 /checksum/MD5/39 424s ok 42 /checksum/MD5/40 424s ok 43 /checksum/MD5/41 424s ok 44 /checksum/MD5/42 424s ok 45 /checksum/MD5/43 424s ok 46 /checksum/MD5/44 424s ok 47 /checksum/MD5/45 424s ok 48 /checksum/MD5/46 424s ok 49 /checksum/MD5/47 424s ok 50 /checksum/MD5/48 424s ok 51 /checksum/MD5/49 424s ok 52 /checksum/MD5/50 424s ok 53 /checksum/MD5/51 424s ok 54 /checksum/MD5/52 424s ok 55 /checksum/MD5/53 424s ok 56 /checksum/MD5/54 424s ok 57 /checksum/MD5/55 424s ok 58 /checksum/MD5/56 424s ok 59 /checksum/MD5/57 424s ok 60 /checksum/MD5/58 424s ok 61 /checksum/MD5/59 424s ok 62 /checksum/MD5/60 424s ok 63 /checksum/MD5/61 424s ok 64 /checksum/MD5/62 424s ok 65 /checksum/MD5/63 424s ok 66 /checksum/MD5/64 424s ok 67 /checksum/MD5/65 424s ok 68 /checksum/MD5/66 424s ok 69 /checksum/MD5/67 424s ok 70 /checksum/MD5/68 424s ok 71 /checksum/MD5/69 424s ok 72 /checksum/MD5/70 424s ok 73 /checksum/MD5/71 424s ok 74 /checksum/MD5/72 424s ok 75 /checksum/MD5/73 424s ok 76 /checksum/MD5/74 424s ok 77 /checksum/MD5/75 424s ok 78 /checksum/MD5/76 424s ok 79 /checksum/MD5/77 424s ok 80 /checksum/MD5/78 424s ok 81 /checksum/MD5/79 424s ok 82 /checksum/MD5/80 424s ok 83 /checksum/MD5/81 424s ok 84 /checksum/MD5/82 424s ok 85 /checksum/MD5/83 424s ok 86 /checksum/MD5/84 424s ok 87 /checksum/MD5/85 424s ok 88 /checksum/MD5/86 424s ok 89 /checksum/MD5/87 424s ok 90 /checksum/MD5/88 424s ok 91 /checksum/MD5/89 424s ok 92 /checksum/MD5/90 424s ok 93 /checksum/MD5/91 424s ok 94 /checksum/MD5/92 424s ok 95 /checksum/MD5/93 424s ok 96 /checksum/MD5/94 424s ok 97 /checksum/MD5/95 424s ok 98 /checksum/MD5/96 424s ok 99 /checksum/MD5/97 424s ok 100 /checksum/MD5/98 424s ok 101 /checksum/MD5/99 424s ok 102 /checksum/MD5/100 424s ok 103 /checksum/MD5/101 424s ok 104 /checksum/MD5/102 424s ok 105 /checksum/MD5/103 424s ok 106 /checksum/MD5/104 424s ok 107 /checksum/MD5/105 424s ok 108 /checksum/MD5/106 424s ok 109 /checksum/MD5/107 424s ok 110 /checksum/MD5/108 424s ok 111 /checksum/MD5/109 424s ok 112 /checksum/MD5/110 424s ok 113 /checksum/MD5/111 424s ok 114 /checksum/MD5/112 424s ok 115 /checksum/MD5/113 424s ok 116 /checksum/MD5/114 424s ok 117 /checksum/MD5/115 424s ok 118 /checksum/MD5/116 424s ok 119 /checksum/MD5/117 424s ok 120 /checksum/MD5/118 424s ok 121 /checksum/MD5/119 424s ok 122 /checksum/MD5/120 424s ok 123 /checksum/MD5/121 424s ok 124 /checksum/MD5/122 424s ok 125 /checksum/MD5/123 424s ok 126 /checksum/MD5/124 424s ok 127 /checksum/MD5/125 424s ok 128 /checksum/MD5/126 424s ok 129 /checksum/MD5/127 424s ok 130 /checksum/MD5/128 424s ok 131 /checksum/MD5/129 424s ok 132 /checksum/MD5/130 424s ok 133 /checksum/MD5/131 424s ok 134 /checksum/MD5/132 424s ok 135 /checksum/MD5/133 424s ok 136 /checksum/MD5/134 424s ok 137 /checksum/MD5/135 424s ok 138 /checksum/MD5/136 424s ok 139 /checksum/MD5/137 424s ok 140 /checksum/MD5/138 424s ok 141 /checksum/MD5/139 424s ok 142 /checksum/MD5/140 424s ok 143 /checksum/MD5/141 424s ok 144 /checksum/MD5/142 424s ok 145 /checksum/MD5/143 424s ok 146 /checksum/MD5/144 424s ok 147 /checksum/MD5/145 424s ok 148 /checksum/MD5/146 424s ok 149 /checksum/MD5/147 424s ok 150 /checksum/MD5/148 424s ok 151 /checksum/MD5/149 424s ok 152 /checksum/MD5/150 424s ok 153 /checksum/MD5/151 424s ok 154 /checksum/MD5/152 424s ok 155 /checksum/MD5/153 424s ok 156 /checksum/MD5/154 424s ok 157 /checksum/MD5/155 424s ok 158 /checksum/MD5/156 424s ok 159 /checksum/MD5/157 424s ok 160 /checksum/MD5/158 424s ok 161 /checksum/MD5/159 424s ok 162 /checksum/MD5/160 424s ok 163 /checksum/MD5/161 424s ok 164 /checksum/MD5/162 424s ok 165 /checksum/MD5/163 424s ok 166 /checksum/MD5/164 424s ok 167 /checksum/MD5/165 424s ok 168 /checksum/MD5/166 424s ok 169 /checksum/MD5/167 424s ok 170 /checksum/MD5/168 424s ok 171 /checksum/MD5/169 424s ok 172 /checksum/MD5/170 424s ok 173 /checksum/MD5/171 424s ok 174 /checksum/MD5/172 424s ok 175 /checksum/MD5/173 424s ok 176 /checksum/MD5/174 424s ok 177 /checksum/MD5/175 424s ok 178 /checksum/MD5/176 424s ok 179 /checksum/MD5/177 424s ok 180 /checksum/MD5/178 424s ok 181 /checksum/MD5/179 424s ok 182 /checksum/MD5/180 424s ok 183 /checksum/MD5/181 424s ok 184 /checksum/MD5/182 424s ok 185 /checksum/MD5/183 424s ok 186 /checksum/MD5/string 424s ok 187 /checksum/MD5/bytes 424s # Start of reset tests 424s ok 188 /checksum/MD5/reset/0 424s ok 189 /checksum/MD5/reset/1 424s ok 190 /checksum/MD5/reset/2 424s ok 191 /checksum/MD5/reset/3 424s ok 192 /checksum/MD5/reset/4 424s ok 193 /checksum/MD5/reset/5 424s ok 194 /checksum/MD5/reset/6 424s ok 195 /checksum/MD5/reset/7 424s ok 196 /checksum/MD5/reset/8 424s ok 197 /checksum/MD5/reset/9 424s ok 198 /checksum/MD5/reset/10 424s ok 199 /checksum/MD5/reset/11 424s ok 200 /checksum/MD5/reset/12 424s ok 201 /checksum/MD5/reset/13 424s ok 202 /checksum/MD5/reset/14 424s ok 203 /checksum/MD5/reset/15 424s ok 204 /checksum/MD5/reset/16 424s ok 205 /checksum/MD5/reset/17 424s ok 206 /checksum/MD5/reset/18 424s ok 207 /checksum/MD5/reset/19 424s ok 208 /checksum/MD5/reset/20 424s ok 209 /checksum/MD5/reset/21 424s ok 210 /checksum/MD5/reset/22 424s ok 211 /checksum/MD5/reset/23 424s ok 212 /checksum/MD5/reset/24 424s ok 213 /checksum/MD5/reset/25 424s ok 214 /checksum/MD5/reset/26 424s ok 215 /checksum/MD5/reset/27 424s ok 216 /checksum/MD5/reset/28 424s ok 217 /checksum/MD5/reset/29 424s ok 218 /checksum/MD5/reset/30 424s ok 219 /checksum/MD5/reset/31 424s ok 220 /checksum/MD5/reset/32 424s ok 221 /checksum/MD5/reset/33 424s ok 222 /checksum/MD5/reset/34 424s ok 223 /checksum/MD5/reset/35 424s ok 224 /checksum/MD5/reset/36 424s ok 225 /checksum/MD5/reset/37 424s ok 226 /checksum/MD5/reset/38 424s ok 227 /checksum/MD5/reset/39 424s ok 228 /checksum/MD5/reset/40 424s ok 229 /checksum/MD5/reset/41 424s ok 230 /checksum/MD5/reset/42 424s ok 231 /checksum/MD5/reset/43 424s ok 232 /checksum/MD5/reset/44 424s ok 233 /checksum/MD5/reset/45 424s ok 234 /checksum/MD5/reset/46 424s ok 235 /checksum/MD5/reset/47 424s ok 236 /checksum/MD5/reset/48 424s ok 237 /checksum/MD5/reset/49 424s ok 238 /checksum/MD5/reset/50 424s ok 239 /checksum/MD5/reset/51 424s ok 240 /checksum/MD5/reset/52 424s ok 241 /checksum/MD5/reset/53 424s ok 242 /checksum/MD5/reset/54 424s ok 243 /checksum/MD5/reset/55 424s ok 244 /checksum/MD5/reset/56 424s ok 245 /checksum/MD5/reset/57 424s ok 246 /checksum/MD5/reset/58 424s ok 247 /checksum/MD5/reset/59 424s ok 248 /checksum/MD5/reset/60 424s ok 249 /checksum/MD5/reset/61 424s ok 250 /checksum/MD5/reset/62 424s ok 251 /checksum/MD5/reset/63 424s ok 252 /checksum/MD5/reset/64 424s ok 253 /checksum/MD5/reset/65 424s ok 254 /checksum/MD5/reset/66 424s ok 255 /checksum/MD5/reset/67 424s ok 256 /checksum/MD5/reset/68 424s ok 257 /checksum/MD5/reset/69 424s ok 258 /checksum/MD5/reset/70 424s ok 259 /checksum/MD5/reset/71 424s ok 260 /checksum/MD5/reset/72 424s ok 261 /checksum/MD5/reset/73 424s ok 262 /checksum/MD5/reset/74 424s ok 263 /checksum/MD5/reset/75 424s ok 264 /checksum/MD5/reset/76 424s ok 265 /checksum/MD5/reset/77 424s ok 266 /checksum/MD5/reset/78 424s ok 267 /checksum/MD5/reset/79 424s ok 268 /checksum/MD5/reset/80 424s ok 269 /checksum/MD5/reset/81 424s ok 270 /checksum/MD5/reset/82 424s ok 271 /checksum/MD5/reset/83 424s ok 272 /checksum/MD5/reset/84 424s ok 273 /checksum/MD5/reset/85 424s ok 274 /checksum/MD5/reset/86 424s ok 275 /checksum/MD5/reset/87 424s ok 276 /checksum/MD5/reset/88 424s ok 277 /checksum/MD5/reset/89 424s ok 278 /checksum/MD5/reset/90 424s ok 279 /checksum/MD5/reset/91 424s ok 280 /checksum/MD5/reset/92 424s ok 281 /checksum/MD5/reset/93 424s ok 282 /checksum/MD5/reset/94 424s ok 283 /checksum/MD5/reset/95 424s ok 284 /checksum/MD5/reset/96 424s ok 285 /checksum/MD5/reset/97 424s ok 286 /checksum/MD5/reset/98 424s ok 287 /checksum/MD5/reset/99 424s ok 288 /checksum/MD5/reset/100 424s ok 289 /checksum/MD5/reset/101 424s ok 290 /checksum/MD5/reset/102 424s ok 291 /checksum/MD5/reset/103 424s ok 292 /checksum/MD5/reset/104 424s ok 293 /checksum/MD5/reset/105 424s ok 294 /checksum/MD5/reset/106 424s ok 295 /checksum/MD5/reset/107 424s ok 296 /checksum/MD5/reset/108 424s ok 297 /checksum/MD5/reset/109 424s ok 298 /checksum/MD5/reset/110 424s ok 299 /checksum/MD5/reset/111 424s ok 300 /checksum/MD5/reset/112 424s ok 301 /checksum/MD5/reset/113 424s ok 302 /checksum/MD5/reset/114 424s ok 303 /checksum/MD5/reset/115 424s ok 304 /checksum/MD5/reset/116 424s ok 305 /checksum/MD5/reset/117 424s ok 306 /checksum/MD5/reset/118 424s ok 307 /checksum/MD5/reset/119 424s ok 308 /checksum/MD5/reset/120 424s ok 309 /checksum/MD5/reset/121 424s ok 310 /checksum/MD5/reset/122 424s ok 311 /checksum/MD5/reset/123 424s ok 312 /checksum/MD5/reset/124 424s ok 313 /checksum/MD5/reset/125 424s ok 314 /checksum/MD5/reset/126 424s ok 315 /checksum/MD5/reset/127 424s ok 316 /checksum/MD5/reset/128 424s ok 317 /checksum/MD5/reset/129 424s ok 318 /checksum/MD5/reset/130 424s ok 319 /checksum/MD5/reset/131 424s ok 320 /checksum/MD5/reset/132 424s ok 321 /checksum/MD5/reset/133 424s ok 322 /checksum/MD5/reset/134 424s ok 323 /checksum/MD5/reset/135 424s ok 324 /checksum/MD5/reset/136 424s ok 325 /checksum/MD5/reset/137 424s ok 326 /checksum/MD5/reset/138 424s ok 327 /checksum/MD5/reset/139 424s ok 328 /checksum/MD5/reset/140 424s ok 329 /checksum/MD5/reset/141 424s ok 330 /checksum/MD5/reset/142 424s ok 331 /checksum/MD5/reset/143 424s ok 332 /checksum/MD5/reset/144 424s ok 333 /checksum/MD5/reset/145 424s ok 334 /checksum/MD5/reset/146 424s ok 335 /checksum/MD5/reset/147 424s ok 336 /checksum/MD5/reset/148 424s ok 337 /checksum/MD5/reset/149 424s ok 338 /checksum/MD5/reset/150 424s ok 339 /checksum/MD5/reset/151 424s ok 340 /checksum/MD5/reset/152 424s ok 341 /checksum/MD5/reset/153 424s ok 342 /checksum/MD5/reset/154 424s ok 343 /checksum/MD5/reset/155 424s ok 344 /checksum/MD5/reset/156 424s ok 345 /checksum/MD5/reset/157 424s ok 346 /checksum/MD5/reset/158 424s ok 347 /checksum/MD5/reset/159 424s ok 348 /checksum/MD5/reset/160 424s ok 349 /checksum/MD5/reset/161 424s ok 350 /checksum/MD5/reset/162 424s ok 351 /checksum/MD5/reset/163 424s ok 352 /checksum/MD5/reset/164 424s ok 353 /checksum/MD5/reset/165 424s ok 354 /checksum/MD5/reset/166 424s ok 355 /checksum/MD5/reset/167 424s ok 356 /checksum/MD5/reset/168 424s ok 357 /checksum/MD5/reset/169 424s ok 358 /checksum/MD5/reset/170 424s ok 359 /checksum/MD5/reset/171 424s ok 360 /checksum/MD5/reset/172 424s ok 361 /checksum/MD5/reset/173 424s ok 362 /checksum/MD5/reset/174 424s ok 363 /checksum/MD5/reset/175 424s ok 364 /checksum/MD5/reset/176 424s ok 365 /checksum/MD5/reset/177 424s ok 366 /checksum/MD5/reset/178 424s ok 367 /checksum/MD5/reset/179 424s ok 368 /checksum/MD5/reset/180 424s ok 369 /checksum/MD5/reset/181 424s ok 370 /checksum/MD5/reset/182 424s ok 371 /checksum/MD5/reset/183 424s # End of reset tests 424s # End of MD5 tests 424s # Start of SHA1 tests 424s ok 372 /checksum/SHA1/0 424s ok 373 /checksum/SHA1/1 424s ok 374 /checksum/SHA1/2 424s ok 375 /checksum/SHA1/3 424s ok 376 /checksum/SHA1/4 424s ok 377 /checksum/SHA1/5 424s ok 378 /checksum/SHA1/6 424s ok 379 /checksum/SHA1/7 424s ok 380 /checksum/SHA1/8 424s ok 381 /checksum/SHA1/9 424s ok 382 /checksum/SHA1/10 424s ok 383 /checksum/SHA1/11 424s ok 384 /checksum/SHA1/12 424s ok 385 /checksum/SHA1/13 424s ok 386 /checksum/SHA1/14 424s ok 387 /checksum/SHA1/15 424s ok 388 /checksum/SHA1/16 424s ok 389 /checksum/SHA1/17 424s ok 390 /checksum/SHA1/18 424s ok 391 /checksum/SHA1/19 424s ok 392 /checksum/SHA1/20 424s ok 393 /checksum/SHA1/21 424s ok 394 /checksum/SHA1/22 424s ok 395 /checksum/SHA1/23 424s ok 396 /checksum/SHA1/24 424s ok 397 /checksum/SHA1/25 424s ok 398 /checksum/SHA1/26 424s ok 399 /checksum/SHA1/27 424s ok 400 /checksum/SHA1/28 424s ok 401 /checksum/SHA1/29 424s ok 402 /checksum/SHA1/30 424s ok 403 /checksum/SHA1/31 424s ok 404 /checksum/SHA1/32 424s ok 405 /checksum/SHA1/33 424s ok 406 /checksum/SHA1/34 424s ok 407 /checksum/SHA1/35 424s ok 408 /checksum/SHA1/36 424s ok 409 /checksum/SHA1/37 424s ok 410 /checksum/SHA1/38 424s ok 411 /checksum/SHA1/39 424s ok 412 /checksum/SHA1/40 424s ok 413 /checksum/SHA1/41 424s ok 414 /checksum/SHA1/42 424s ok 415 /checksum/SHA1/43 424s ok 416 /checksum/SHA1/44 424s ok 417 /checksum/SHA1/45 424s ok 418 /checksum/SHA1/46 424s ok 419 /checksum/SHA1/47 424s ok 420 /checksum/SHA1/48 424s ok 421 /checksum/SHA1/49 424s ok 422 /checksum/SHA1/50 424s ok 423 /checksum/SHA1/51 424s ok 424 /checksum/SHA1/52 424s ok 425 /checksum/SHA1/53 424s ok 426 /checksum/SHA1/54 424s ok 427 /checksum/SHA1/55 424s ok 428 /checksum/SHA1/56 424s ok 429 /checksum/SHA1/57 424s ok 430 /checksum/SHA1/58 424s ok 431 /checksum/SHA1/59 424s ok 432 /checksum/SHA1/60 424s ok 433 /checksum/SHA1/61 424s ok 434 /checksum/SHA1/62 424s ok 435 /checksum/SHA1/63 424s ok 436 /checksum/SHA1/64 424s ok 437 /checksum/SHA1/65 424s ok 438 /checksum/SHA1/66 424s ok 439 /checksum/SHA1/67 424s ok 440 /checksum/SHA1/68 424s ok 441 /checksum/SHA1/69 424s ok 442 /checksum/SHA1/70 424s ok 443 /checksum/SHA1/71 424s ok 444 /checksum/SHA1/72 424s ok 445 /checksum/SHA1/73 424s ok 446 /checksum/SHA1/74 424s ok 447 /checksum/SHA1/75 424s ok 448 /checksum/SHA1/76 424s ok 449 /checksum/SHA1/77 424s ok 450 /checksum/SHA1/78 424s ok 451 /checksum/SHA1/79 424s ok 452 /checksum/SHA1/80 424s ok 453 /checksum/SHA1/81 424s ok 454 /checksum/SHA1/82 424s ok 455 /checksum/SHA1/83 424s ok 456 /checksum/SHA1/84 424s ok 457 /checksum/SHA1/85 424s ok 458 /checksum/SHA1/86 424s ok 459 /checksum/SHA1/87 424s ok 460 /checksum/SHA1/88 424s ok 461 /checksum/SHA1/89 424s ok 462 /checksum/SHA1/90 424s ok 463 /checksum/SHA1/91 424s ok 464 /checksum/SHA1/92 424s ok 465 /checksum/SHA1/93 424s ok 466 /checksum/SHA1/94 424s ok 467 /checksum/SHA1/95 424s ok 468 /checksum/SHA1/96 424s ok 469 /checksum/SHA1/97 424s ok 470 /checksum/SHA1/98 424s ok 471 /checksum/SHA1/99 424s ok 472 /checksum/SHA1/100 424s ok 473 /checksum/SHA1/101 424s ok 474 /checksum/SHA1/102 424s ok 475 /checksum/SHA1/103 424s ok 476 /checksum/SHA1/104 424s ok 477 /checksum/SHA1/105 424s ok 478 /checksum/SHA1/106 424s ok 479 /checksum/SHA1/107 424s ok 480 /checksum/SHA1/108 424s ok 481 /checksum/SHA1/109 424s ok 482 /checksum/SHA1/110 424s ok 483 /checksum/SHA1/111 424s ok 484 /checksum/SHA1/112 424s ok 485 /checksum/SHA1/113 424s ok 486 /checksum/SHA1/114 424s ok 487 /checksum/SHA1/115 424s ok 488 /checksum/SHA1/116 424s ok 489 /checksum/SHA1/117 424s ok 490 /checksum/SHA1/118 424s ok 491 /checksum/SHA1/119 424s ok 492 /checksum/SHA1/120 424s ok 493 /checksum/SHA1/121 424s ok 494 /checksum/SHA1/122 424s ok 495 /checksum/SHA1/123 424s ok 496 /checksum/SHA1/124 424s ok 497 /checksum/SHA1/125 424s ok 498 /checksum/SHA1/126 424s ok 499 /checksum/SHA1/127 424s ok 500 /checksum/SHA1/128 424s ok 501 /checksum/SHA1/129 424s ok 502 /checksum/SHA1/130 424s ok 503 /checksum/SHA1/131 424s ok 504 /checksum/SHA1/132 424s ok 505 /checksum/SHA1/133 424s ok 506 /checksum/SHA1/134 424s ok 507 /checksum/SHA1/135 424s ok 508 /checksum/SHA1/136 424s ok 509 /checksum/SHA1/137 424s ok 510 /checksum/SHA1/138 424s ok 511 /checksum/SHA1/139 424s ok 512 /checksum/SHA1/140 424s ok 513 /checksum/SHA1/141 424s ok 514 /checksum/SHA1/142 424s ok 515 /checksum/SHA1/143 424s ok 516 /checksum/SHA1/144 424s ok 517 /checksum/SHA1/145 424s ok 518 /checksum/SHA1/146 424s ok 519 /checksum/SHA1/147 424s ok 520 /checksum/SHA1/148 424s ok 521 /checksum/SHA1/149 424s ok 522 /checksum/SHA1/150 424s ok 523 /checksum/SHA1/151 424s ok 524 /checksum/SHA1/152 424s ok 525 /checksum/SHA1/153 424s ok 526 /checksum/SHA1/154 424s ok 527 /checksum/SHA1/155 424s ok 528 /checksum/SHA1/156 424s ok 529 /checksum/SHA1/157 424s ok 530 /checksum/SHA1/158 424s ok 531 /checksum/SHA1/159 424s ok 532 /checksum/SHA1/160 424s ok 533 /checksum/SHA1/161 424s ok 534 /checksum/SHA1/162 424s ok 535 /checksum/SHA1/163 424s ok 536 /checksum/SHA1/164 424s ok 537 /checksum/SHA1/165 424s ok 538 /checksum/SHA1/166 424s ok 539 /checksum/SHA1/167 424s ok 540 /checksum/SHA1/168 424s ok 541 /checksum/SHA1/169 424s ok 542 /checksum/SHA1/170 424s ok 543 /checksum/SHA1/171 424s ok 544 /checksum/SHA1/172 424s ok 545 /checksum/SHA1/173 424s ok 546 /checksum/SHA1/174 424s ok 547 /checksum/SHA1/175 424s ok 548 /checksum/SHA1/176 424s ok 549 /checksum/SHA1/177 424s ok 550 /checksum/SHA1/178 424s ok 551 /checksum/SHA1/179 424s ok 552 /checksum/SHA1/180 424s ok 553 /checksum/SHA1/181 424s ok 554 /checksum/SHA1/182 424s ok 555 /checksum/SHA1/183 424s ok 556 /checksum/SHA1/string 424s ok 557 /checksum/SHA1/bytes 424s # Start of reset tests 424s ok 558 /checksum/SHA1/reset/0 424s ok 559 /checksum/SHA1/reset/1 424s ok 560 /checksum/SHA1/reset/2 424s ok 561 /checksum/SHA1/reset/3 424s ok 562 /checksum/SHA1/reset/4 424s ok 563 /checksum/SHA1/reset/5 424s ok 564 /checksum/SHA1/reset/6 424s ok 565 /checksum/SHA1/reset/7 424s ok 566 /checksum/SHA1/reset/8 424s ok 567 /checksum/SHA1/reset/9 424s ok 568 /checksum/SHA1/reset/10 424s ok 569 /checksum/SHA1/reset/11 424s ok 570 /checksum/SHA1/reset/12 424s ok 571 /checksum/SHA1/reset/13 424s ok 572 /checksum/SHA1/reset/14 424s ok 573 /checksum/SHA1/reset/15 424s ok 574 /checksum/SHA1/reset/16 424s ok 575 /checksum/SHA1/reset/17 424s ok 576 /checksum/SHA1/reset/18 424s ok 577 /checksum/SHA1/reset/19 424s ok 578 /checksum/SHA1/reset/20 424s ok 579 /checksum/SHA1/reset/21 424s ok 580 /checksum/SHA1/reset/22 424s ok 581 /checksum/SHA1/reset/23 424s ok 582 /checksum/SHA1/reset/24 424s ok 583 /checksum/SHA1/reset/25 424s ok 584 /checksum/SHA1/reset/26 424s ok 585 /checksum/SHA1/reset/27 424s ok 586 /checksum/SHA1/reset/28 424s ok 587 /checksum/SHA1/reset/29 424s ok 588 /checksum/SHA1/reset/30 424s ok 589 /checksum/SHA1/reset/31 424s ok 590 /checksum/SHA1/reset/32 424s ok 591 /checksum/SHA1/reset/33 424s ok 592 /checksum/SHA1/reset/34 424s ok 593 /checksum/SHA1/reset/35 424s ok 594 /checksum/SHA1/reset/36 424s ok 595 /checksum/SHA1/reset/37 424s ok 596 /checksum/SHA1/reset/38 424s ok 597 /checksum/SHA1/reset/39 424s ok 598 /checksum/SHA1/reset/40 424s ok 599 /checksum/SHA1/reset/41 424s ok 600 /checksum/SHA1/reset/42 424s ok 601 /checksum/SHA1/reset/43 424s ok 602 /checksum/SHA1/reset/44 424s ok 603 /checksum/SHA1/reset/45 424s ok 604 /checksum/SHA1/reset/46 424s ok 605 /checksum/SHA1/reset/47 424s ok 606 /checksum/SHA1/reset/48 424s ok 607 /checksum/SHA1/reset/49 424s ok 608 /checksum/SHA1/reset/50 424s ok 609 /checksum/SHA1/reset/51 424s ok 610 /checksum/SHA1/reset/52 424s ok 611 /checksum/SHA1/reset/53 424s ok 612 /checksum/SHA1/reset/54 424s ok 613 /checksum/SHA1/reset/55 424s ok 614 /checksum/SHA1/reset/56 424s ok 615 /checksum/SHA1/reset/57 424s ok 616 /checksum/SHA1/reset/58 424s ok 617 /checksum/SHA1/reset/59 424s ok 618 /checksum/SHA1/reset/60 424s ok 619 /checksum/SHA1/reset/61 424s ok 620 /checksum/SHA1/reset/62 424s ok 621 /checksum/SHA1/reset/63 424s ok 622 /checksum/SHA1/reset/64 424s ok 623 /checksum/SHA1/reset/65 424s ok 624 /checksum/SHA1/reset/66 424s ok 625 /checksum/SHA1/reset/67 424s ok 626 /checksum/SHA1/reset/68 424s ok 627 /checksum/SHA1/reset/69 424s ok 628 /checksum/SHA1/reset/70 424s ok 629 /checksum/SHA1/reset/71 424s ok 630 /checksum/SHA1/reset/72 424s ok 631 /checksum/SHA1/reset/73 424s ok 632 /checksum/SHA1/reset/74 424s ok 633 /checksum/SHA1/reset/75 424s ok 634 /checksum/SHA1/reset/76 424s ok 635 /checksum/SHA1/reset/77 424s ok 636 /checksum/SHA1/reset/78 424s ok 637 /checksum/SHA1/reset/79 424s ok 638 /checksum/SHA1/reset/80 424s ok 639 /checksum/SHA1/reset/81 424s ok 640 /checksum/SHA1/reset/82 424s ok 641 /checksum/SHA1/reset/83 424s ok 642 /checksum/SHA1/reset/84 424s ok 643 /checksum/SHA1/reset/85 424s ok 644 /checksum/SHA1/reset/86 424s ok 645 /checksum/SHA1/reset/87 424s ok 646 /checksum/SHA1/reset/88 424s ok 647 /checksum/SHA1/reset/89 424s ok 648 /checksum/SHA1/reset/90 424s ok 649 /checksum/SHA1/reset/91 424s ok 650 /checksum/SHA1/reset/92 424s ok 651 /checksum/SHA1/reset/93 424s ok 652 /checksum/SHA1/reset/94 424s ok 653 /checksum/SHA1/reset/95 424s ok 654 /checksum/SHA1/reset/96 424s ok 655 /checksum/SHA1/reset/97 424s ok 656 /checksum/SHA1/reset/98 424s ok 657 /checksum/SHA1/reset/99 424s ok 658 /checksum/SHA1/reset/100 424s ok 659 /checksum/SHA1/reset/101 424s ok 660 /checksum/SHA1/reset/102 424s ok 661 /checksum/SHA1/reset/103 424s ok 662 /checksum/SHA1/reset/104 424s ok 663 /checksum/SHA1/reset/105 424s ok 664 /checksum/SHA1/reset/106 424s ok 665 /checksum/SHA1/reset/107 424s ok 666 /checksum/SHA1/reset/108 424s ok 667 /checksum/SHA1/reset/109 424s ok 668 /checksum/SHA1/reset/110 424s ok 669 /checksum/SHA1/reset/111 424s ok 670 /checksum/SHA1/reset/112 424s ok 671 /checksum/SHA1/reset/113 424s ok 672 /checksum/SHA1/reset/114 424s ok 673 /checksum/SHA1/reset/115 424s ok 674 /checksum/SHA1/reset/116 424s ok 675 /checksum/SHA1/reset/117 424s ok 676 /checksum/SHA1/reset/118 424s ok 677 /checksum/SHA1/reset/119 424s ok 678 /checksum/SHA1/reset/120 424s ok 679 /checksum/SHA1/reset/121 424s ok 680 /checksum/SHA1/reset/122 424s ok 681 /checksum/SHA1/reset/123 424s ok 682 /checksum/SHA1/reset/124 424s ok 683 /checksum/SHA1/reset/125 424s ok 684 /checksum/SHA1/reset/126 424s ok 685 /checksum/SHA1/reset/127 424s ok 686 /checksum/SHA1/reset/128 424s ok 687 /checksum/SHA1/reset/129 424s ok 688 /checksum/SHA1/reset/130 424s ok 689 /checksum/SHA1/reset/131 424s ok 690 /checksum/SHA1/reset/132 424s ok 691 /checksum/SHA1/reset/133 424s ok 692 /checksum/SHA1/reset/134 424s ok 693 /checksum/SHA1/reset/135 424s ok 694 /checksum/SHA1/reset/136 424s ok 695 /checksum/SHA1/reset/137 424s ok 696 /checksum/SHA1/reset/138 424s ok 697 /checksum/SHA1/reset/139 424s ok 698 /checksum/SHA1/reset/140 424s ok 699 /checksum/SHA1/reset/141 424s ok 700 /checksum/SHA1/reset/142 424s ok 701 /checksum/SHA1/reset/143 424s ok 702 /checksum/SHA1/reset/144 424s ok 703 /checksum/SHA1/reset/145 424s ok 704 /checksum/SHA1/reset/146 424s ok 705 /checksum/SHA1/reset/147 424s ok 706 /checksum/SHA1/reset/148 424s ok 707 /checksum/SHA1/reset/149 424s ok 708 /checksum/SHA1/reset/150 424s ok 709 /checksum/SHA1/reset/151 424s ok 710 /checksum/SHA1/reset/152 424s ok 711 /checksum/SHA1/reset/153 424s ok 712 /checksum/SHA1/reset/154 424s ok 713 /checksum/SHA1/reset/155 424s ok 714 /checksum/SHA1/reset/156 424s ok 715 /checksum/SHA1/reset/157 424s ok 716 /checksum/SHA1/reset/158 424s ok 717 /checksum/SHA1/reset/159 424s ok 718 /checksum/SHA1/reset/160 424s ok 719 /checksum/SHA1/reset/161 424s ok 720 /checksum/SHA1/reset/162 424s ok 721 /checksum/SHA1/reset/163 424s ok 722 /checksum/SHA1/reset/164 424s ok 723 /checksum/SHA1/reset/165 424s ok 724 /checksum/SHA1/reset/166 424s ok 725 /checksum/SHA1/reset/167 424s ok 726 /checksum/SHA1/reset/168 424s ok 727 /checksum/SHA1/reset/169 424s ok 728 /checksum/SHA1/reset/170 424s ok 729 /checksum/SHA1/reset/171 424s ok 730 /checksum/SHA1/reset/172 424s ok 731 /checksum/SHA1/reset/173 424s ok 732 /checksum/SHA1/reset/174 424s ok 733 /checksum/SHA1/reset/175 424s ok 734 /checksum/SHA1/reset/176 424s ok 735 /checksum/SHA1/reset/177 424s ok 736 /checksum/SHA1/reset/178 424s ok 737 /checksum/SHA1/reset/179 424s ok 738 /checksum/SHA1/reset/180 424s ok 739 /checksum/SHA1/reset/181 424s ok 740 /checksum/SHA1/reset/182 424s ok 741 /checksum/SHA1/reset/183 424s # End of reset tests 424s # End of SHA1 tests 424s # Start of SHA256 tests 424s ok 742 /checksum/SHA256/0 424s ok 743 /checksum/SHA256/1 424s ok 744 /checksum/SHA256/2 424s ok 745 /checksum/SHA256/3 424s ok 746 /checksum/SHA256/4 424s ok 747 /checksum/SHA256/5 424s ok 748 /checksum/SHA256/6 424s ok 749 /checksum/SHA256/7 424s ok 750 /checksum/SHA256/8 424s ok 751 /checksum/SHA256/9 424s ok 752 /checksum/SHA256/10 424s ok 753 /checksum/SHA256/11 424s ok 754 /checksum/SHA256/12 424s ok 755 /checksum/SHA256/13 424s ok 756 /checksum/SHA256/14 424s ok 757 /checksum/SHA256/15 424s ok 758 /checksum/SHA256/16 424s ok 759 /checksum/SHA256/17 424s ok 760 /checksum/SHA256/18 424s ok 761 /checksum/SHA256/19 424s ok 762 /checksum/SHA256/20 424s ok 763 /checksum/SHA256/21 424s ok 764 /checksum/SHA256/22 424s ok 765 /checksum/SHA256/23 424s ok 766 /checksum/SHA256/24 424s ok 767 /checksum/SHA256/25 424s ok 768 /checksum/SHA256/26 424s ok 769 /checksum/SHA256/27 424s ok 770 /checksum/SHA256/28 424s ok 771 /checksum/SHA256/29 424s ok 772 /checksum/SHA256/30 424s ok 773 /checksum/SHA256/31 424s ok 774 /checksum/SHA256/32 424s ok 775 /checksum/SHA256/33 424s ok 776 /checksum/SHA256/34 424s ok 777 /checksum/SHA256/35 424s ok 778 /checksum/SHA256/36 424s ok 779 /checksum/SHA256/37 424s ok 780 /checksum/SHA256/38 424s ok 781 /checksum/SHA256/39 424s ok 782 /checksum/SHA256/40 424s ok 783 /checksum/SHA256/41 424s ok 784 /checksum/SHA256/42 424s ok 785 /checksum/SHA256/43 424s ok 786 /checksum/SHA256/44 424s ok 787 /checksum/SHA256/45 424s ok 788 /checksum/SHA256/46 424s ok 789 /checksum/SHA256/47 424s ok 790 /checksum/SHA256/48 424s ok 791 /checksum/SHA256/49 424s ok 792 /checksum/SHA256/50 424s ok 793 /checksum/SHA256/51 424s ok 794 /checksum/SHA256/52 424s ok 795 /checksum/SHA256/53 424s ok 796 /checksum/SHA256/54 424s ok 797 /checksum/SHA256/55 424s ok 798 /checksum/SHA256/56 424s ok 799 /checksum/SHA256/57 424s ok 800 /checksum/SHA256/58 424s ok 801 /checksum/SHA256/59 424s ok 802 /checksum/SHA256/60 424s ok 803 /checksum/SHA256/61 424s ok 804 /checksum/SHA256/62 424s ok 805 /checksum/SHA256/63 424s ok 806 /checksum/SHA256/64 424s ok 807 /checksum/SHA256/65 424s ok 808 /checksum/SHA256/66 424s ok 809 /checksum/SHA256/67 424s ok 810 /checksum/SHA256/68 424s ok 811 /checksum/SHA256/69 424s ok 812 /checksum/SHA256/70 424s ok 813 /checksum/SHA256/71 424s ok 814 /checksum/SHA256/72 424s ok 815 /checksum/SHA256/73 424s ok 816 /checksum/SHA256/74 424s ok 817 /checksum/SHA256/75 424s ok 818 /checksum/SHA256/76 424s ok 819 /checksum/SHA256/77 424s ok 820 /checksum/SHA256/78 424s ok 821 /checksum/SHA256/79 424s ok 822 /checksum/SHA256/80 424s ok 823 /checksum/SHA256/81 424s ok 824 /checksum/SHA256/82 424s ok 825 /checksum/SHA256/83 424s ok 826 /checksum/SHA256/84 424s ok 827 /checksum/SHA256/85 424s ok 828 /checksum/SHA256/86 424s ok 829 /checksum/SHA256/87 424s ok 830 /checksum/SHA256/88 424s ok 831 /checksum/SHA256/89 424s ok 832 /checksum/SHA256/90 424s ok 833 /checksum/SHA256/91 424s ok 834 /checksum/SHA256/92 424s ok 835 /checksum/SHA256/93 424s ok 836 /checksum/SHA256/94 424s ok 837 /checksum/SHA256/95 424s ok 838 /checksum/SHA256/96 424s ok 839 /checksum/SHA256/97 424s ok 840 /checksum/SHA256/98 424s ok 841 /checksum/SHA256/99 424s ok 842 /checksum/SHA256/100 424s ok 843 /checksum/SHA256/101 424s ok 844 /checksum/SHA256/102 424s ok 845 /checksum/SHA256/103 424s ok 846 /checksum/SHA256/104 424s ok 847 /checksum/SHA256/105 424s ok 848 /checksum/SHA256/106 424s ok 849 /checksum/SHA256/107 424s ok 850 /checksum/SHA256/108 424s ok 851 /checksum/SHA256/109 424s ok 852 /checksum/SHA256/110 424s ok 853 /checksum/SHA256/111 424s ok 854 /checksum/SHA256/112 424s ok 855 /checksum/SHA256/113 424s ok 856 /checksum/SHA256/114 424s ok 857 /checksum/SHA256/115 424s ok 858 /checksum/SHA256/116 424s ok 859 /checksum/SHA256/117 424s ok 860 /checksum/SHA256/118 424s ok 861 /checksum/SHA256/119 424s ok 862 /checksum/SHA256/120 424s ok 863 /checksum/SHA256/121 424s ok 864 /checksum/SHA256/122 424s ok 865 /checksum/SHA256/123 424s ok 866 /checksum/SHA256/124 424s ok 867 /checksum/SHA256/125 424s ok 868 /checksum/SHA256/126 424s ok 869 /checksum/SHA256/127 424s ok 870 /checksum/SHA256/128 424s ok 871 /checksum/SHA256/129 424s ok 872 /checksum/SHA256/130 424s ok 873 /checksum/SHA256/131 424s ok 874 /checksum/SHA256/132 424s ok 875 /checksum/SHA256/133 424s ok 876 /checksum/SHA256/134 424s ok 877 /checksum/SHA256/135 424s ok 878 /checksum/SHA256/136 424s ok 879 /checksum/SHA256/137 424s ok 880 /checksum/SHA256/138 424s ok 881 /checksum/SHA256/139 424s ok 882 /checksum/SHA256/140 424s ok 883 /checksum/SHA256/141 424s ok 884 /checksum/SHA256/142 424s ok 885 /checksum/SHA256/143 424s ok 886 /checksum/SHA256/144 424s ok 887 /checksum/SHA256/145 424s ok 888 /checksum/SHA256/146 424s ok 889 /checksum/SHA256/147 424s ok 890 /checksum/SHA256/148 424s ok 891 /checksum/SHA256/149 424s ok 892 /checksum/SHA256/150 424s ok 893 /checksum/SHA256/151 424s ok 894 /checksum/SHA256/152 424s ok 895 /checksum/SHA256/153 424s ok 896 /checksum/SHA256/154 424s ok 897 /checksum/SHA256/155 424s ok 898 /checksum/SHA256/156 424s ok 899 /checksum/SHA256/157 424s ok 900 /checksum/SHA256/158 424s ok 901 /checksum/SHA256/159 424s ok 902 /checksum/SHA256/160 424s ok 903 /checksum/SHA256/161 424s ok 904 /checksum/SHA256/162 424s ok 905 /checksum/SHA256/163 424s ok 906 /checksum/SHA256/164 424s ok 907 /checksum/SHA256/165 424s ok 908 /checksum/SHA256/166 424s ok 909 /checksum/SHA256/167 424s ok 910 /checksum/SHA256/168 424s ok 911 /checksum/SHA256/169 424s ok 912 /checksum/SHA256/170 424s ok 913 /checksum/SHA256/171 424s ok 914 /checksum/SHA256/172 424s ok 915 /checksum/SHA256/173 424s ok 916 /checksum/SHA256/174 424s ok 917 /checksum/SHA256/175 424s ok 918 /checksum/SHA256/176 424s ok 919 /checksum/SHA256/177 424s ok 920 /checksum/SHA256/178 424s ok 921 /checksum/SHA256/179 424s ok 922 /checksum/SHA256/180 424s ok 923 /checksum/SHA256/181 424s ok 924 /checksum/SHA256/182 424s ok 925 /checksum/SHA256/183 424s ok 926 /checksum/SHA256/string 424s ok 927 /checksum/SHA256/bytes 424s # Start of reset tests 424s ok 928 /checksum/SHA256/reset/0 424s ok 929 /checksum/SHA256/reset/1 424s ok 930 /checksum/SHA256/reset/2 424s ok 931 /checksum/SHA256/reset/3 424s ok 932 /checksum/SHA256/reset/4 424s ok 933 /checksum/SHA256/reset/5 424s ok 934 /checksum/SHA256/reset/6 424s ok 935 /checksum/SHA256/reset/7 424s ok 936 /checksum/SHA256/reset/8 424s ok 937 /checksum/SHA256/reset/9 424s ok 938 /checksum/SHA256/reset/10 424s ok 939 /checksum/SHA256/reset/11 424s ok 940 /checksum/SHA256/reset/12 424s ok 941 /checksum/SHA256/reset/13 424s ok 942 /checksum/SHA256/reset/14 424s ok 943 /checksum/SHA256/reset/15 424s ok 944 /checksum/SHA256/reset/16 424s ok 945 /checksum/SHA256/reset/17 424s ok 946 /checksum/SHA256/reset/18 424s ok 947 /checksum/SHA256/reset/19 424s ok 948 /checksum/SHA256/reset/20 424s ok 949 /checksum/SHA256/reset/21 424s ok 950 /checksum/SHA256/reset/22 424s ok 951 /checksum/SHA256/reset/23 424s ok 952 /checksum/SHA256/reset/24 424s ok 953 /checksum/SHA256/reset/25 424s ok 954 /checksum/SHA256/reset/26 424s ok 955 /checksum/SHA256/reset/27 424s ok 956 /checksum/SHA256/reset/28 424s ok 957 /checksum/SHA256/reset/29 424s ok 958 /checksum/SHA256/reset/30 424s ok 959 /checksum/SHA256/reset/31 424s ok 960 /checksum/SHA256/reset/32 424s ok 961 /checksum/SHA256/reset/33 424s ok 962 /checksum/SHA256/reset/34 424s ok 963 /checksum/SHA256/reset/35 424s ok 964 /checksum/SHA256/reset/36 424s ok 965 /checksum/SHA256/reset/37 424s ok 966 /checksum/SHA256/reset/38 424s ok 967 /checksum/SHA256/reset/39 424s ok 968 /checksum/SHA256/reset/40 424s ok 969 /checksum/SHA256/reset/41 424s ok 970 /checksum/SHA256/reset/42 424s ok 971 /checksum/SHA256/reset/43 424s ok 972 /checksum/SHA256/reset/44 424s ok 973 /checksum/SHA256/reset/45 424s ok 974 /checksum/SHA256/reset/46 424s ok 975 /checksum/SHA256/reset/47 424s ok 976 /checksum/SHA256/reset/48 424s ok 977 /checksum/SHA256/reset/49 424s ok 978 /checksum/SHA256/reset/50 424s ok 979 /checksum/SHA256/reset/51 424s ok 980 /checksum/SHA256/reset/52 424s ok 981 /checksum/SHA256/reset/53 424s ok 982 /checksum/SHA256/reset/54 424s ok 983 /checksum/SHA256/reset/55 424s ok 984 /checksum/SHA256/reset/56 424s ok 985 /checksum/SHA256/reset/57 424s ok 986 /checksum/SHA256/reset/58 424s ok 987 /checksum/SHA256/reset/59 424s ok 988 /checksum/SHA256/reset/60 424s ok 989 /checksum/SHA256/reset/61 424s ok 990 /checksum/SHA256/reset/62 424s ok 991 /checksum/SHA256/reset/63 424s ok 992 /checksum/SHA256/reset/64 424s ok 993 /checksum/SHA256/reset/65 424s ok 994 /checksum/SHA256/reset/66 424s ok 995 /checksum/SHA256/reset/67 424s ok 996 /checksum/SHA256/reset/68 424s ok 997 /checksum/SHA256/reset/69 424s ok 998 /checksum/SHA256/reset/70 424s ok 999 /checksum/SHA256/reset/71 424s ok 1000 /checksum/SHA256/reset/72 424s ok 1001 /checksum/SHA256/reset/73 424s ok 1002 /checksum/SHA256/reset/74 424s ok 1003 /checksum/SHA256/reset/75 424s ok 1004 /checksum/SHA256/reset/76 424s ok 1005 /checksum/SHA256/reset/77 424s ok 1006 /checksum/SHA256/reset/78 424s ok 1007 /checksum/SHA256/reset/79 424s ok 1008 /checksum/SHA256/reset/80 424s ok 1009 /checksum/SHA256/reset/81 424s ok 1010 /checksum/SHA256/reset/82 424s ok 1011 /checksum/SHA256/reset/83 424s ok 1012 /checksum/SHA256/reset/84 424s ok 1013 /checksum/SHA256/reset/85 424s ok 1014 /checksum/SHA256/reset/86 424s ok 1015 /checksum/SHA256/reset/87 424s ok 1016 /checksum/SHA256/reset/88 424s ok 1017 /checksum/SHA256/reset/89 424s ok 1018 /checksum/SHA256/reset/90 424s ok 1019 /checksum/SHA256/reset/91 424s ok 1020 /checksum/SHA256/reset/92 424s ok 1021 /checksum/SHA256/reset/93 424s ok 1022 /checksum/SHA256/reset/94 424s ok 1023 /checksum/SHA256/reset/95 424s ok 1024 /checksum/SHA256/reset/96 424s ok 1025 /checksum/SHA256/reset/97 424s ok 1026 /checksum/SHA256/reset/98 424s ok 1027 /checksum/SHA256/reset/99 424s ok 1028 /checksum/SHA256/reset/100 424s ok 1029 /checksum/SHA256/reset/101 424s ok 1030 /checksum/SHA256/reset/102 424s ok 1031 /checksum/SHA256/reset/103 424s ok 1032 /checksum/SHA256/reset/104 424s ok 1033 /checksum/SHA256/reset/105 424s ok 1034 /checksum/SHA256/reset/106 424s ok 1035 /checksum/SHA256/reset/107 424s ok 1036 /checksum/SHA256/reset/108 424s ok 1037 /checksum/SHA256/reset/109 424s ok 1038 /checksum/SHA256/reset/110 424s ok 1039 /checksum/SHA256/reset/111 424s ok 1040 /checksum/SHA256/reset/112 424s ok 1041 /checksum/SHA256/reset/113 424s ok 1042 /checksum/SHA256/reset/114 424s ok 1043 /checksum/SHA256/reset/115 424s ok 1044 /checksum/SHA256/reset/116 424s ok 1045 /checksum/SHA256/reset/117 424s ok 1046 /checksum/SHA256/reset/118 424s ok 1047 /checksum/SHA256/reset/119 424s ok 1048 /checksum/SHA256/reset/120 424s ok 1049 /checksum/SHA256/reset/121 424s ok 1050 /checksum/SHA256/reset/122 424s ok 1051 /checksum/SHA256/reset/123 424s ok 1052 /checksum/SHA256/reset/124 424s ok 1053 /checksum/SHA256/reset/125 424s ok 1054 /checksum/SHA256/reset/126 424s ok 1055 /checksum/SHA256/reset/127 424s ok 1056 /checksum/SHA256/reset/128 424s ok 1057 /checksum/SHA256/reset/129 424s ok 1058 /checksum/SHA256/reset/130 424s ok 1059 /checksum/SHA256/reset/131 424s ok 1060 /checksum/SHA256/reset/132 424s ok 1061 /checksum/SHA256/reset/133 424s ok 1062 /checksum/SHA256/reset/134 424s ok 1063 /checksum/SHA256/reset/135 424s ok 1064 /checksum/SHA256/reset/136 424s ok 1065 /checksum/SHA256/reset/137 424s ok 1066 /checksum/SHA256/reset/138 424s ok 1067 /checksum/SHA256/reset/139 424s ok 1068 /checksum/SHA256/reset/140 424s ok 1069 /checksum/SHA256/reset/141 424s ok 1070 /checksum/SHA256/reset/142 424s ok 1071 /checksum/SHA256/reset/143 424s ok 1072 /checksum/SHA256/reset/144 424s ok 1073 /checksum/SHA256/reset/145 424s ok 1074 /checksum/SHA256/reset/146 424s ok 1075 /checksum/SHA256/reset/147 424s ok 1076 /checksum/SHA256/reset/148 424s ok 1077 /checksum/SHA256/reset/149 424s ok 1078 /checksum/SHA256/reset/150 424s ok 1079 /checksum/SHA256/reset/151 424s ok 1080 /checksum/SHA256/reset/152 424s ok 1081 /checksum/SHA256/reset/153 424s ok 1082 /checksum/SHA256/reset/154 424s ok 1083 /checksum/SHA256/reset/155 424s ok 1084 /checksum/SHA256/reset/156 424s ok 1085 /checksum/SHA256/reset/157 424s ok 1086 /checksum/SHA256/reset/158 424s ok 1087 /checksum/SHA256/reset/159 424s ok 1088 /checksum/SHA256/reset/160 424s ok 1089 /checksum/SHA256/reset/161 424s ok 1090 /checksum/SHA256/reset/162 424s ok 1091 /checksum/SHA256/reset/163 424s ok 1092 /checksum/SHA256/reset/164 424s ok 1093 /checksum/SHA256/reset/165 424s ok 1094 /checksum/SHA256/reset/166 424s ok 1095 /checksum/SHA256/reset/167 424s ok 1096 /checksum/SHA256/reset/168 424s ok 1097 /checksum/SHA256/reset/169 424s ok 1098 /checksum/SHA256/reset/170 424s ok 1099 /checksum/SHA256/reset/171 424s ok 1100 /checksum/SHA256/reset/172 424s ok 1101 /checksum/SHA256/reset/173 424s ok 1102 /checksum/SHA256/reset/174 424s ok 1103 /checksum/SHA256/reset/175 424s ok 1104 /checksum/SHA256/reset/176 424s ok 1105 /checksum/SHA256/reset/177 424s ok 1106 /checksum/SHA256/reset/178 424s ok 1107 /checksum/SHA256/reset/179 424s ok 1108 /checksum/SHA256/reset/180 424s ok 1109 /checksum/SHA256/reset/181 424s ok 1110 /checksum/SHA256/reset/182 424s ok 1111 /checksum/SHA256/reset/183 424s # End of reset tests 424s # End of SHA256 tests 424s # Start of SHA384 tests 424s ok 1112 /checksum/SHA384/0 424s ok 1113 /checksum/SHA384/1 424s ok 1114 /checksum/SHA384/2 424s ok 1115 /checksum/SHA384/3 424s ok 1116 /checksum/SHA384/4 424s ok 1117 /checksum/SHA384/5 424s ok 1118 /checksum/SHA384/6 424s ok 1119 /checksum/SHA384/7 424s ok 1120 /checksum/SHA384/8 424s ok 1121 /checksum/SHA384/9 424s ok 1122 /checksum/SHA384/10 424s ok 1123 /checksum/SHA384/11 424s ok 1124 /checksum/SHA384/12 424s ok 1125 /checksum/SHA384/13 424s ok 1126 /checksum/SHA384/14 424s ok 1127 /checksum/SHA384/15 424s ok 1128 /checksum/SHA384/16 424s ok 1129 /checksum/SHA384/17 424s ok 1130 /checksum/SHA384/18 424s ok 1131 /checksum/SHA384/19 424s ok 1132 /checksum/SHA384/20 424s ok 1133 /checksum/SHA384/21 424s ok 1134 /checksum/SHA384/22 424s ok 1135 /checksum/SHA384/23 424s ok 1136 /checksum/SHA384/24 424s ok 1137 /checksum/SHA384/25 424s ok 1138 /checksum/SHA384/26 424s ok 1139 /checksum/SHA384/27 424s ok 1140 /checksum/SHA384/28 424s ok 1141 /checksum/SHA384/29 424s ok 1142 /checksum/SHA384/30 424s ok 1143 /checksum/SHA384/31 424s ok 1144 /checksum/SHA384/32 424s ok 1145 /checksum/SHA384/33 424s ok 1146 /checksum/SHA384/34 424s ok 1147 /checksum/SHA384/35 424s ok 1148 /checksum/SHA384/36 424s ok 1149 /checksum/SHA384/37 424s ok 1150 /checksum/SHA384/38 424s ok 1151 /checksum/SHA384/39 424s ok 1152 /checksum/SHA384/40 424s ok 1153 /checksum/SHA384/41 424s ok 1154 /checksum/SHA384/42 424s ok 1155 /checksum/SHA384/43 424s ok 1156 /checksum/SHA384/44 424s ok 1157 /checksum/SHA384/45 424s ok 1158 /checksum/SHA384/46 424s ok 1159 /checksum/SHA384/47 424s ok 1160 /checksum/SHA384/48 424s ok 1161 /checksum/SHA384/49 424s ok 1162 /checksum/SHA384/50 424s ok 1163 /checksum/SHA384/51 424s ok 1164 /checksum/SHA384/52 424s ok 1165 /checksum/SHA384/53 424s ok 1166 /checksum/SHA384/54 424s ok 1167 /checksum/SHA384/55 424s ok 1168 /checksum/SHA384/56 424s ok 1169 /checksum/SHA384/57 424s ok 1170 /checksum/SHA384/58 424s ok 1171 /checksum/SHA384/59 424s ok 1172 /checksum/SHA384/60 424s ok 1173 /checksum/SHA384/61 424s ok 1174 /checksum/SHA384/62 424s ok 1175 /checksum/SHA384/63 424s ok 1176 /checksum/SHA384/64 424s ok 1177 /checksum/SHA384/65 424s ok 1178 /checksum/SHA384/66 424s ok 1179 /checksum/SHA384/67 424s ok 1180 /checksum/SHA384/68 424s ok 1181 /checksum/SHA384/69 424s ok 1182 /checksum/SHA384/70 424s ok 1183 /checksum/SHA384/71 424s ok 1184 /checksum/SHA384/72 424s ok 1185 /checksum/SHA384/73 424s ok 1186 /checksum/SHA384/74 424s ok 1187 /checksum/SHA384/75 424s ok 1188 /checksum/SHA384/76 424s ok 1189 /checksum/SHA384/77 424s ok 1190 /checksum/SHA384/78 424s ok 1191 /checksum/SHA384/79 424s ok 1192 /checksum/SHA384/80 424s ok 1193 /checksum/SHA384/81 424s ok 1194 /checksum/SHA384/82 424s ok 1195 /checksum/SHA384/83 424s ok 1196 /checksum/SHA384/84 424s ok 1197 /checksum/SHA384/85 424s ok 1198 /checksum/SHA384/86 424s ok 1199 /checksum/SHA384/87 424s ok 1200 /checksum/SHA384/88 424s ok 1201 /checksum/SHA384/89 424s ok 1202 /checksum/SHA384/90 424s ok 1203 /checksum/SHA384/91 424s ok 1204 /checksum/SHA384/92 424s ok 1205 /checksum/SHA384/93 424s ok 1206 /checksum/SHA384/94 424s ok 1207 /checksum/SHA384/95 424s ok 1208 /checksum/SHA384/96 424s ok 1209 /checksum/SHA384/97 424s ok 1210 /checksum/SHA384/98 424s ok 1211 /checksum/SHA384/99 424s ok 1212 /checksum/SHA384/100 424s ok 1213 /checksum/SHA384/101 424s ok 1214 /checksum/SHA384/102 424s ok 1215 /checksum/SHA384/103 424s ok 1216 /checksum/SHA384/104 424s ok 1217 /checksum/SHA384/105 424s ok 1218 /checksum/SHA384/106 424s ok 1219 /checksum/SHA384/107 424s ok 1220 /checksum/SHA384/108 424s ok 1221 /checksum/SHA384/109 424s ok 1222 /checksum/SHA384/110 424s ok 1223 /checksum/SHA384/111 424s ok 1224 /checksum/SHA384/112 424s ok 1225 /checksum/SHA384/113 424s ok 1226 /checksum/SHA384/114 424s ok 1227 /checksum/SHA384/115 424s ok 1228 /checksum/SHA384/116 424s ok 1229 /checksum/SHA384/117 424s ok 1230 /checksum/SHA384/118 424s ok 1231 /checksum/SHA384/119 424s ok 1232 /checksum/SHA384/120 424s ok 1233 /checksum/SHA384/121 424s ok 1234 /checksum/SHA384/122 424s ok 1235 /checksum/SHA384/123 424s ok 1236 /checksum/SHA384/124 424s ok 1237 /checksum/SHA384/125 424s ok 1238 /checksum/SHA384/126 424s ok 1239 /checksum/SHA384/127 424s ok 1240 /checksum/SHA384/128 424s ok 1241 /checksum/SHA384/129 424s ok 1242 /checksum/SHA384/130 424s ok 1243 /checksum/SHA384/131 424s ok 1244 /checksum/SHA384/132 424s ok 1245 /checksum/SHA384/133 424s ok 1246 /checksum/SHA384/134 424s ok 1247 /checksum/SHA384/135 424s ok 1248 /checksum/SHA384/136 424s ok 1249 /checksum/SHA384/137 424s ok 1250 /checksum/SHA384/138 424s ok 1251 /checksum/SHA384/139 424s ok 1252 /checksum/SHA384/140 424s ok 1253 /checksum/SHA384/141 424s ok 1254 /checksum/SHA384/142 424s ok 1255 /checksum/SHA384/143 424s ok 1256 /checksum/SHA384/144 424s ok 1257 /checksum/SHA384/145 424s ok 1258 /checksum/SHA384/146 424s ok 1259 /checksum/SHA384/147 424s ok 1260 /checksum/SHA384/148 424s ok 1261 /checksum/SHA384/149 424s ok 1262 /checksum/SHA384/150 424s ok 1263 /checksum/SHA384/151 424s ok 1264 /checksum/SHA384/152 424s ok 1265 /checksum/SHA384/153 424s ok 1266 /checksum/SHA384/154 424s ok 1267 /checksum/SHA384/155 424s ok 1268 /checksum/SHA384/156 424s ok 1269 /checksum/SHA384/157 424s ok 1270 /checksum/SHA384/158 424s ok 1271 /checksum/SHA384/159 424s ok 1272 /checksum/SHA384/160 424s ok 1273 /checksum/SHA384/161 424s ok 1274 /checksum/SHA384/162 424s ok 1275 /checksum/SHA384/163 424s ok 1276 /checksum/SHA384/164 424s ok 1277 /checksum/SHA384/165 424s ok 1278 /checksum/SHA384/166 424s ok 1279 /checksum/SHA384/167 424s ok 1280 /checksum/SHA384/168 424s ok 1281 /checksum/SHA384/169 424s ok 1282 /checksum/SHA384/170 424s ok 1283 /checksum/SHA384/171 424s ok 1284 /checksum/SHA384/172 424s ok 1285 /checksum/SHA384/173 424s ok 1286 /checksum/SHA384/174 424s ok 1287 /checksum/SHA384/175 424s ok 1288 /checksum/SHA384/176 424s ok 1289 /checksum/SHA384/177 424s ok 1290 /checksum/SHA384/178 424s ok 1291 /checksum/SHA384/179 424s ok 1292 /checksum/SHA384/180 424s ok 1293 /checksum/SHA384/181 424s ok 1294 /checksum/SHA384/182 424s ok 1295 /checksum/SHA384/183 424s ok 1296 /checksum/SHA384/string 424s ok 1297 /checksum/SHA384/bytes 424s # Start of reset tests 424s ok 1298 /checksum/SHA384/reset/0 424s ok 1299 /checksum/SHA384/reset/1 424s ok 1300 /checksum/SHA384/reset/2 424s ok 1301 /checksum/SHA384/reset/3 424s ok 1302 /checksum/SHA384/reset/4 424s ok 1303 /checksum/SHA384/reset/5 424s ok 1304 /checksum/SHA384/reset/6 424s ok 1305 /checksum/SHA384/reset/7 424s ok 1306 /checksum/SHA384/reset/8 424s ok 1307 /checksum/SHA384/reset/9 424s ok 1308 /checksum/SHA384/reset/10 424s ok 1309 /checksum/SHA384/reset/11 424s ok 1310 /checksum/SHA384/reset/12 424s ok 1311 /checksum/SHA384/reset/13 424s ok 1312 /checksum/SHA384/reset/14 424s ok 1313 /checksum/SHA384/reset/15 424s ok 1314 /checksum/SHA384/reset/16 424s ok 1315 /checksum/SHA384/reset/17 424s ok 1316 /checksum/SHA384/reset/18 424s ok 1317 /checksum/SHA384/reset/19 424s ok 1318 /checksum/SHA384/reset/20 424s ok 1319 /checksum/SHA384/reset/21 424s ok 1320 /checksum/SHA384/reset/22 424s ok 1321 /checksum/SHA384/reset/23 424s ok 1322 /checksum/SHA384/reset/24 424s ok 1323 /checksum/SHA384/reset/25 424s ok 1324 /checksum/SHA384/reset/26 424s ok 1325 /checksum/SHA384/reset/27 424s ok 1326 /checksum/SHA384/reset/28 424s ok 1327 /checksum/SHA384/reset/29 424s ok 1328 /checksum/SHA384/reset/30 424s ok 1329 /checksum/SHA384/reset/31 424s ok 1330 /checksum/SHA384/reset/32 424s ok 1331 /checksum/SHA384/reset/33 424s ok 1332 /checksum/SHA384/reset/34 424s ok 1333 /checksum/SHA384/reset/35 424s ok 1334 /checksum/SHA384/reset/36 424s ok 1335 /checksum/SHA384/reset/37 424s ok 1336 /checksum/SHA384/reset/38 424s ok 1337 /checksum/SHA384/reset/39 424s ok 1338 /checksum/SHA384/reset/40 424s ok 1339 /checksum/SHA384/reset/41 424s ok 1340 /checksum/SHA384/reset/42 424s ok 1341 /checksum/SHA384/reset/43 424s ok 1342 /checksum/SHA384/reset/44 424s ok 1343 /checksum/SHA384/reset/45 424s ok 1344 /checksum/SHA384/reset/46 424s ok 1345 /checksum/SHA384/reset/47 424s ok 1346 /checksum/SHA384/reset/48 424s ok 1347 /checksum/SHA384/reset/49 424s ok 1348 /checksum/SHA384/reset/50 424s ok 1349 /checksum/SHA384/reset/51 424s ok 1350 /checksum/SHA384/reset/52 424s ok 1351 /checksum/SHA384/reset/53 424s ok 1352 /checksum/SHA384/reset/54 424s ok 1353 /checksum/SHA384/reset/55 424s ok 1354 /checksum/SHA384/reset/56 424s ok 1355 /checksum/SHA384/reset/57 424s ok 1356 /checksum/SHA384/reset/58 424s ok 1357 /checksum/SHA384/reset/59 424s ok 1358 /checksum/SHA384/reset/60 424s ok 1359 /checksum/SHA384/reset/61 424s ok 1360 /checksum/SHA384/reset/62 424s ok 1361 /checksum/SHA384/reset/63 424s ok 1362 /checksum/SHA384/reset/64 424s ok 1363 /checksum/SHA384/reset/65 424s ok 1364 /checksum/SHA384/reset/66 424s ok 1365 /checksum/SHA384/reset/67 424s ok 1366 /checksum/SHA384/reset/68 424s ok 1367 /checksum/SHA384/reset/69 424s ok 1368 /checksum/SHA384/reset/70 424s ok 1369 /checksum/SHA384/reset/71 424s ok 1370 /checksum/SHA384/reset/72 424s ok 1371 /checksum/SHA384/reset/73 424s ok 1372 /checksum/SHA384/reset/74 424s ok 1373 /checksum/SHA384/reset/75 424s ok 1374 /checksum/SHA384/reset/76 424s ok 1375 /checksum/SHA384/reset/77 424s ok 1376 /checksum/SHA384/reset/78 424s ok 1377 /checksum/SHA384/reset/79 424s ok 1378 /checksum/SHA384/reset/80 424s ok 1379 /checksum/SHA384/reset/81 424s ok 1380 /checksum/SHA384/reset/82 424s ok 1381 /checksum/SHA384/reset/83 424s ok 1382 /checksum/SHA384/reset/84 424s ok 1383 /checksum/SHA384/reset/85 424s ok 1384 /checksum/SHA384/reset/86 424s ok 1385 /checksum/SHA384/reset/87 424s ok 1386 /checksum/SHA384/reset/88 424s ok 1387 /checksum/SHA384/reset/89 424s ok 1388 /checksum/SHA384/reset/90 424s ok 1389 /checksum/SHA384/reset/91 424s ok 1390 /checksum/SHA384/reset/92 424s ok 1391 /checksum/SHA384/reset/93 424s ok 1392 /checksum/SHA384/reset/94 424s ok 1393 /checksum/SHA384/reset/95 424s ok 1394 /checksum/SHA384/reset/96 424s ok 1395 /checksum/SHA384/reset/97 424s ok 1396 /checksum/SHA384/reset/98 424s ok 1397 /checksum/SHA384/reset/99 424s ok 1398 /checksum/SHA384/reset/100 424s ok 1399 /checksum/SHA384/reset/101 424s ok 1400 /checksum/SHA384/reset/102 424s ok 1401 /checksum/SHA384/reset/103 424s ok 1402 /checksum/SHA384/reset/104 424s ok 1403 /checksum/SHA384/reset/105 424s ok 1404 /checksum/SHA384/reset/106 424s ok 1405 /checksum/SHA384/reset/107 424s ok 1406 /checksum/SHA384/reset/108 424s ok 1407 /checksum/SHA384/reset/109 424s ok 1408 /checksum/SHA384/reset/110 424s ok 1409 /checksum/SHA384/reset/111 424s ok 1410 /checksum/SHA384/reset/112 424s ok 1411 /checksum/SHA384/reset/113 424s ok 1412 /checksum/SHA384/reset/114 424s ok 1413 /checksum/SHA384/reset/115 424s ok 1414 /checksum/SHA384/reset/116 424s ok 1415 /checksum/SHA384/reset/117 424s ok 1416 /checksum/SHA384/reset/118 424s ok 1417 /checksum/SHA384/reset/119 424s ok 1418 /checksum/SHA384/reset/120 424s ok 1419 /checksum/SHA384/reset/121 424s ok 1420 /checksum/SHA384/reset/122 424s ok 1421 /checksum/SHA384/reset/123 424s ok 1422 /checksum/SHA384/reset/124 424s ok 1423 /checksum/SHA384/reset/125 424s ok 1424 /checksum/SHA384/reset/126 424s ok 1425 /checksum/SHA384/reset/127 424s ok 1426 /checksum/SHA384/reset/128 424s ok 1427 /checksum/SHA384/reset/129 424s ok 1428 /checksum/SHA384/reset/130 424s ok 1429 /checksum/SHA384/reset/131 424s ok 1430 /checksum/SHA384/reset/132 424s ok 1431 /checksum/SHA384/reset/133 424s ok 1432 /checksum/SHA384/reset/134 424s ok 1433 /checksum/SHA384/reset/135 424s ok 1434 /checksum/SHA384/reset/136 424s ok 1435 /checksum/SHA384/reset/137 424s ok 1436 /checksum/SHA384/reset/138 424s ok 1437 /checksum/SHA384/reset/139 424s ok 1438 /checksum/SHA384/reset/140 424s ok 1439 /checksum/SHA384/reset/141 424s ok 1440 /checksum/SHA384/reset/142 424s ok 1441 /checksum/SHA384/reset/143 424s ok 1442 /checksum/SHA384/reset/144 424s ok 1443 /checksum/SHA384/reset/145 424s ok 1444 /checksum/SHA384/reset/146 424s ok 1445 /checksum/SHA384/reset/147 424s ok 1446 /checksum/SHA384/reset/148 424s ok 1447 /checksum/SHA384/reset/149 424s ok 1448 /checksum/SHA384/reset/150 424s ok 1449 /checksum/SHA384/reset/151 424s ok 1450 /checksum/SHA384/reset/152 424s ok 1451 /checksum/SHA384/reset/153 424s ok 1452 /checksum/SHA384/reset/154 424s ok 1453 /checksum/SHA384/reset/155 424s ok 1454 /checksum/SHA384/reset/156 424s ok 1455 /checksum/SHA384/reset/157 424s ok 1456 /checksum/SHA384/reset/158 424s ok 1457 /checksum/SHA384/reset/159 424s ok 1458 /checksum/SHA384/reset/160 424s ok 1459 /checksum/SHA384/reset/161 424s ok 1460 /checksum/SHA384/reset/162 424s ok 1461 /checksum/SHA384/reset/163 424s ok 1462 /checksum/SHA384/reset/164 424s ok 1463 /checksum/SHA384/reset/165 424s ok 1464 /checksum/SHA384/reset/166 424s ok 1465 /checksum/SHA384/reset/167 424s ok 1466 /checksum/SHA384/reset/168 424s ok 1467 /checksum/SHA384/reset/169 424s ok 1468 /checksum/SHA384/reset/170 424s ok 1469 /checksum/SHA384/reset/171 424s ok 1470 /checksum/SHA384/reset/172 424s ok 1471 /checksum/SHA384/reset/173 424s ok 1472 /checksum/SHA384/reset/174 424s ok 1473 /checksum/SHA384/reset/175 424s ok 1474 /checksum/SHA384/reset/176 424s ok 1475 /checksum/SHA384/reset/177 424s ok 1476 /checksum/SHA384/reset/178 424s ok 1477 /checksum/SHA384/reset/179 424s ok 1478 /checksum/SHA384/reset/180 424s ok 1479 /checksum/SHA384/reset/181 424s ok 1480 /checksum/SHA384/reset/182 424s ok 1481 /checksum/SHA384/reset/183 424s # End of reset tests 424s # End of SHA384 tests 424s # Start of SHA512 tests 424s ok 1482 /checksum/SHA512/0 424s ok 1483 /checksum/SHA512/1 424s ok 1484 /checksum/SHA512/2 424s ok 1485 /checksum/SHA512/3 424s ok 1486 /checksum/SHA512/4 424s ok 1487 /checksum/SHA512/5 424s ok 1488 /checksum/SHA512/6 424s ok 1489 /checksum/SHA512/7 424s ok 1490 /checksum/SHA512/8 424s ok 1491 /checksum/SHA512/9 424s ok 1492 /checksum/SHA512/10 424s ok 1493 /checksum/SHA512/11 424s ok 1494 /checksum/SHA512/12 424s ok 1495 /checksum/SHA512/13 424s ok 1496 /checksum/SHA512/14 424s ok 1497 /checksum/SHA512/15 424s ok 1498 /checksum/SHA512/16 424s ok 1499 /checksum/SHA512/17 424s ok 1500 /checksum/SHA512/18 424s ok 1501 /checksum/SHA512/19 424s ok 1502 /checksum/SHA512/20 424s ok 1503 /checksum/SHA512/21 424s ok 1504 /checksum/SHA512/22 424s ok 1505 /checksum/SHA512/23 424s ok 1506 /checksum/SHA512/24 424s ok 1507 /checksum/SHA512/25 424s ok 1508 /checksum/SHA512/26 424s ok 1509 /checksum/SHA512/27 424s ok 1510 /checksum/SHA512/28 424s ok 1511 /checksum/SHA512/29 424s ok 1512 /checksum/SHA512/30 424s ok 1513 /checksum/SHA512/31 424s ok 1514 /checksum/SHA512/32 424s ok 1515 /checksum/SHA512/33 424s ok 1516 /checksum/SHA512/34 424s ok 1517 /checksum/SHA512/35 424s ok 1518 /checksum/SHA512/36 424s ok 1519 /checksum/SHA512/37 424s ok 1520 /checksum/SHA512/38 424s ok 1521 /checksum/SHA512/39 424s ok 1522 /checksum/SHA512/40 424s ok 1523 /checksum/SHA512/41 424s ok 1524 /checksum/SHA512/42 424s ok 1525 /checksum/SHA512/43 424s ok 1526 /checksum/SHA512/44 424s ok 1527 /checksum/SHA512/45 424s ok 1528 /checksum/SHA512/46 424s ok 1529 /checksum/SHA512/47 424s ok 1530 /checksum/SHA512/48 425s ok 1531 /checksum/SHA512/49 425s ok 1532 /checksum/SHA512/50 425s ok 1533 /checksum/SHA512/51 425s ok 1534 /checksum/SHA512/52 425s ok 1535 /checksum/SHA512/53 425s ok 1536 /checksum/SHA512/54 425s ok 1537 /checksum/SHA512/55 425s ok 1538 /checksum/SHA512/56 425s ok 1539 /checksum/SHA512/57 425s ok 1540 /checksum/SHA512/58 425s ok 1541 /checksum/SHA512/59 425s ok 1542 /checksum/SHA512/60 425s ok 1543 /checksum/SHA512/61 425s ok 1544 /checksum/SHA512/62 425s ok 1545 /checksum/SHA512/63 425s ok 1546 /checksum/SHA512/64 425s ok 1547 /checksum/SHA512/65 425s ok 1548 /checksum/SHA512/66 425s ok 1549 /checksum/SHA512/67 425s ok 1550 /checksum/SHA512/68 425s ok 1551 /checksum/SHA512/69 425s ok 1552 /checksum/SHA512/70 425s ok 1553 /checksum/SHA512/71 425s ok 1554 /checksum/SHA512/72 425s ok 1555 /checksum/SHA512/73 425s ok 1556 /checksum/SHA512/74 425s ok 1557 /checksum/SHA512/75 425s ok 1558 /checksum/SHA512/76 425s ok 1559 /checksum/SHA512/77 425s ok 1560 /checksum/SHA512/78 425s ok 1561 /checksum/SHA512/79 425s ok 1562 /checksum/SHA512/80 425s ok 1563 /checksum/SHA512/81 425s ok 1564 /checksum/SHA512/82 425s ok 1565 /checksum/SHA512/83 425s ok 1566 /checksum/SHA512/84 425s ok 1567 /checksum/SHA512/85 425s ok 1568 /checksum/SHA512/86 425s ok 1569 /checksum/SHA512/87 425s ok 1570 /checksum/SHA512/88 425s ok 1571 /checksum/SHA512/89 425s ok 1572 /checksum/SHA512/90 425s ok 1573 /checksum/SHA512/91 425s ok 1574 /checksum/SHA512/92 425s ok 1575 /checksum/SHA512/93 425s ok 1576 /checksum/SHA512/94 425s ok 1577 /checksum/SHA512/95 425s ok 1578 /checksum/SHA512/96 425s ok 1579 /checksum/SHA512/97 425s ok 1580 /checksum/SHA512/98 425s ok 1581 /checksum/SHA512/99 425s ok 1582 /checksum/SHA512/100 425s ok 1583 /checksum/SHA512/101 425s ok 1584 /checksum/SHA512/102 425s ok 1585 /checksum/SHA512/103 425s ok 1586 /checksum/SHA512/104 425s ok 1587 /checksum/SHA512/105 425s ok 1588 /checksum/SHA512/106 425s ok 1589 /checksum/SHA512/107 425s ok 1590 /checksum/SHA512/108 425s ok 1591 /checksum/SHA512/109 425s ok 1592 /checksum/SHA512/110 425s ok 1593 /checksum/SHA512/111 425s ok 1594 /checksum/SHA512/112 425s ok 1595 /checksum/SHA512/113 425s ok 1596 /checksum/SHA512/114 425s ok 1597 /checksum/SHA512/115 425s ok 1598 /checksum/SHA512/116 425s ok 1599 /checksum/SHA512/117 425s ok 1600 /checksum/SHA512/118 425s ok 1601 /checksum/SHA512/119 425s ok 1602 /checksum/SHA512/120 425s ok 1603 /checksum/SHA512/121 425s ok 1604 /checksum/SHA512/122 425s ok 1605 /checksum/SHA512/123 425s ok 1606 /checksum/SHA512/124 425s ok 1607 /checksum/SHA512/125 425s ok 1608 /checksum/SHA512/126 425s ok 1609 /checksum/SHA512/127 425s ok 1610 /checksum/SHA512/128 425s ok 1611 /checksum/SHA512/129 425s ok 1612 /checksum/SHA512/130 425s ok 1613 /checksum/SHA512/131 425s ok 1614 /checksum/SHA512/132 425s ok 1615 /checksum/SHA512/133 425s ok 1616 /checksum/SHA512/134 425s ok 1617 /checksum/SHA512/135 425s ok 1618 /checksum/SHA512/136 425s ok 1619 /checksum/SHA512/137 425s ok 1620 /checksum/SHA512/138 425s ok 1621 /checksum/SHA512/139 425s ok 1622 /checksum/SHA512/140 425s ok 1623 /checksum/SHA512/141 425s ok 1624 /checksum/SHA512/142 425s ok 1625 /checksum/SHA512/143 425s ok 1626 /checksum/SHA512/144 425s ok 1627 /checksum/SHA512/145 425s ok 1628 /checksum/SHA512/146 425s ok 1629 /checksum/SHA512/147 425s ok 1630 /checksum/SHA512/148 425s ok 1631 /checksum/SHA512/149 425s ok 1632 /checksum/SHA512/150 425s ok 1633 /checksum/SHA512/151 425s ok 1634 /checksum/SHA512/152 425s ok 1635 /checksum/SHA512/153 425s ok 1636 /checksum/SHA512/154 425s ok 1637 /checksum/SHA512/155 425s ok 1638 /checksum/SHA512/156 425s ok 1639 /checksum/SHA512/157 425s ok 1640 /checksum/SHA512/158 425s ok 1641 /checksum/SHA512/159 425s ok 1642 /checksum/SHA512/160 425s ok 1643 /checksum/SHA512/161 425s ok 1644 /checksum/SHA512/162 425s ok 1645 /checksum/SHA512/163 425s ok 1646 /checksum/SHA512/164 425s ok 1647 /checksum/SHA512/165 425s ok 1648 /checksum/SHA512/166 425s ok 1649 /checksum/SHA512/167 425s ok 1650 /checksum/SHA512/168 425s ok 1651 /checksum/SHA512/169 425s ok 1652 /checksum/SHA512/170 425s ok 1653 /checksum/SHA512/171 425s ok 1654 /checksum/SHA512/172 425s ok 1655 /checksum/SHA512/173 425s ok 1656 /checksum/SHA512/174 425s ok 1657 /checksum/SHA512/175 425s ok 1658 /checksum/SHA512/176 425s ok 1659 /checksum/SHA512/177 425s ok 1660 /checksum/SHA512/178 425s ok 1661 /checksum/SHA512/179 425s ok 1662 /checksum/SHA512/180 425s ok 1663 /checksum/SHA512/181 425s ok 1664 /checksum/SHA512/182 425s ok 1665 /checksum/SHA512/183 425s ok 1666 /checksum/SHA512/string 425s ok 1667 /checksum/SHA512/bytes 425s # Start of reset tests 425s ok 1668 /checksum/SHA512/reset/0 425s ok 1669 /checksum/SHA512/reset/1 425s ok 1670 /checksum/SHA512/reset/2 425s ok 1671 /checksum/SHA512/reset/3 425s ok 1672 /checksum/SHA512/reset/4 425s ok 1673 /checksum/SHA512/reset/5 425s ok 1674 /checksum/SHA512/reset/6 425s ok 1675 /checksum/SHA512/reset/7 425s ok 1676 /checksum/SHA512/reset/8 425s ok 1677 /checksum/SHA512/reset/9 425s ok 1678 /checksum/SHA512/reset/10 425s ok 1679 /checksum/SHA512/reset/11 425s ok 1680 /checksum/SHA512/reset/12 425s ok 1681 /checksum/SHA512/reset/13 425s ok 1682 /checksum/SHA512/reset/14 425s ok 1683 /checksum/SHA512/reset/15 425s ok 1684 /checksum/SHA512/reset/16 425s ok 1685 /checksum/SHA512/reset/17 425s ok 1686 /checksum/SHA512/reset/18 425s ok 1687 /checksum/SHA512/reset/19 425s ok 1688 /checksum/SHA512/reset/20 425s ok 1689 /checksum/SHA512/reset/21 425s ok 1690 /checksum/SHA512/reset/22 425s ok 1691 /checksum/SHA512/reset/23 425s ok 1692 /checksum/SHA512/reset/24 425s ok 1693 /checksum/SHA512/reset/25 425s ok 1694 /checksum/SHA512/reset/26 425s ok 1695 /checksum/SHA512/reset/27 425s ok 1696 /checksum/SHA512/reset/28 425s ok 1697 /checksum/SHA512/reset/29 425s ok 1698 /checksum/SHA512/reset/30 425s ok 1699 /checksum/SHA512/reset/31 425s ok 1700 /checksum/SHA512/reset/32 425s ok 1701 /checksum/SHA512/reset/33 425s ok 1702 /checksum/SHA512/reset/34 425s ok 1703 /checksum/SHA512/reset/35 425s ok 1704 /checksum/SHA512/reset/36 425s ok 1705 /checksum/SHA512/reset/37 425s ok 1706 /checksum/SHA512/reset/38 425s ok 1707 /checksum/SHA512/reset/39 425s ok 1708 /checksum/SHA512/reset/40 425s ok 1709 /checksum/SHA512/reset/41 425s ok 1710 /checksum/SHA512/reset/42 425s ok 1711 /checksum/SHA512/reset/43 425s ok 1712 /checksum/SHA512/reset/44 425s ok 1713 /checksum/SHA512/reset/45 425s ok 1714 /checksum/SHA512/reset/46 425s ok 1715 /checksum/SHA512/reset/47 425s ok 1716 /checksum/SHA512/reset/48 425s ok 1717 /checksum/SHA512/reset/49 425s ok 1718 /checksum/SHA512/reset/50 425s ok 1719 /checksum/SHA512/reset/51 425s ok 1720 /checksum/SHA512/reset/52 425s ok 1721 /checksum/SHA512/reset/53 425s ok 1722 /checksum/SHA512/reset/54 425s ok 1723 /checksum/SHA512/reset/55 425s ok 1724 /checksum/SHA512/reset/56 425s ok 1725 /checksum/SHA512/reset/57 425s ok 1726 /checksum/SHA512/reset/58 425s ok 1727 /checksum/SHA512/reset/59 425s ok 1728 /checksum/SHA512/reset/60 425s ok 1729 /checksum/SHA512/reset/61 425s ok 1730 /checksum/SHA512/reset/62 425s ok 1731 /checksum/SHA512/reset/63 425s ok 1732 /checksum/SHA512/reset/64 425s ok 1733 /checksum/SHA512/reset/65 425s ok 1734 /checksum/SHA512/reset/66 425s ok 1735 /checksum/SHA512/reset/67 425s ok 1736 /checksum/SHA512/reset/68 425s ok 1737 /checksum/SHA512/reset/69 425s ok 1738 /checksum/SHA512/reset/70 425s ok 1739 /checksum/SHA512/reset/71 425s ok 1740 /checksum/SHA512/reset/72 425s ok 1741 /checksum/SHA512/reset/73 425s ok 1742 /checksum/SHA512/reset/74 425s ok 1743 /checksum/SHA512/reset/75 425s ok 1744 /checksum/SHA512/reset/76 425s ok 1745 /checksum/SHA512/reset/77 425s ok 1746 /checksum/SHA512/reset/78 425s ok 1747 /checksum/SHA512/reset/79 425s ok 1748 /checksum/SHA512/reset/80 425s ok 1749 /checksum/SHA512/reset/81 425s ok 1750 /checksum/SHA512/reset/82 425s ok 1751 /checksum/SHA512/reset/83 425s ok 1752 /checksum/SHA512/reset/84 425s ok 1753 /checksum/SHA512/reset/85 425s ok 1754 /checksum/SHA512/reset/86 425s ok 1755 /checksum/SHA512/reset/87 425s ok 1756 /checksum/SHA512/reset/88 425s ok 1757 /checksum/SHA512/reset/89 425s ok 1758 /checksum/SHA512/reset/90 425s ok 1759 /checksum/SHA512/reset/91 425s ok 1760 /checksum/SHA512/reset/92 425s ok 1761 /checksum/SHA512/reset/93 425s ok 1762 /checksum/SHA512/reset/94 425s ok 1763 /checksum/SHA512/reset/95 425s ok 1764 /checksum/SHA512/reset/96 425s ok 1765 /checksum/SHA512/reset/97 425s ok 1766 /checksum/SHA512/reset/98 425s ok 1767 /checksum/SHA512/reset/99 425s ok 1768 /checksum/SHA512/reset/100 425s ok 1769 /checksum/SHA512/reset/101 425s ok 1770 /checksum/SHA512/reset/102 425s ok 1771 /checksum/SHA512/reset/103 425s ok 1772 /checksum/SHA512/reset/104 425s ok 1773 /checksum/SHA512/reset/105 425s ok 1774 /checksum/SHA512/reset/106 425s ok 1775 /checksum/SHA512/reset/107 425s ok 1776 /checksum/SHA512/reset/108 425s ok 1777 /checksum/SHA512/reset/109 425s ok 1778 /checksum/SHA512/reset/110 425s ok 1779 /checksum/SHA512/reset/111 425s ok 1780 /checksum/SHA512/reset/112 425s ok 1781 /checksum/SHA512/reset/113 425s ok 1782 /checksum/SHA512/reset/114 425s ok 1783 /checksum/SHA512/reset/115 425s ok 1784 /checksum/SHA512/reset/116 425s ok 1785 /checksum/SHA512/reset/117 425s ok 1786 /checksum/SHA512/reset/118 425s ok 1787 /checksum/SHA512/reset/119 425s ok 1788 /checksum/SHA512/reset/120 425s ok 1789 /checksum/SHA512/reset/121 425s ok 1790 /checksum/SHA512/reset/122 425s ok 1791 /checksum/SHA512/reset/123 425s ok 1792 /checksum/SHA512/reset/124 425s ok 1793 /checksum/SHA512/reset/125 425s ok 1794 /checksum/SHA512/reset/126 425s ok 1795 /checksum/SHA512/reset/127 425s ok 1796 /checksum/SHA512/reset/128 425s ok 1797 /checksum/SHA512/reset/129 425s ok 1798 /checksum/SHA512/reset/130 425s ok 1799 /checksum/SHA512/reset/131 425s ok 1800 /checksum/SHA512/reset/132 425s ok 1801 /checksum/SHA512/reset/133 425s ok 1802 /checksum/SHA512/reset/134 425s ok 1803 /checksum/SHA512/reset/135 425s ok 1804 /checksum/SHA512/reset/136 425s ok 1805 /checksum/SHA512/reset/137 425s ok 1806 /checksum/SHA512/reset/138 425s ok 1807 /checksum/SHA512/reset/139 425s ok 1808 /checksum/SHA512/reset/140 425s ok 1809 /checksum/SHA512/reset/141 425s ok 1810 /checksum/SHA512/reset/142 425s ok 1811 /checksum/SHA512/reset/143 425s ok 1812 /checksum/SHA512/reset/144 425s ok 1813 /checksum/SHA512/reset/145 425s ok 1814 /checksum/SHA512/reset/146 425s ok 1815 /checksum/SHA512/reset/147 425s ok 1816 /checksum/SHA512/reset/148 425s ok 1817 /checksum/SHA512/reset/149 425s ok 1818 /checksum/SHA512/reset/150 425s ok 1819 /checksum/SHA512/reset/151 425s ok 1820 /checksum/SHA512/reset/152 425s ok 1821 /checksum/SHA512/reset/153 425s ok 1822 /checksum/SHA512/reset/154 425s ok 1823 /checksum/SHA512/reset/155 425s ok 1824 /checksum/SHA512/reset/156 425s ok 1825 /checksum/SHA512/reset/157 425s ok 1826 /checksum/SHA512/reset/158 425s ok 1827 /checksum/SHA512/reset/159 425s ok 1828 /checksum/SHA512/reset/160 425s ok 1829 /checksum/SHA512/reset/161 425s ok 1830 /checksum/SHA512/reset/162 425s ok 1831 /checksum/SHA512/reset/163 425s ok 1832 /checksum/SHA512/reset/164 425s ok - glib/checksum.test 425s # Running test: glib/buffered-input-stream.test 425s ok 1833 /checksum/SHA512/reset/165 425s ok 1834 /checksum/SHA512/reset/166 425s ok 1835 /checksum/SHA512/reset/167 425s ok 1836 /checksum/SHA512/reset/168 425s ok 1837 /checksum/SHA512/reset/169 425s ok 1838 /checksum/SHA512/reset/170 425s ok 1839 /checksum/SHA512/reset/171 425s ok 1840 /checksum/SHA512/reset/172 425s ok 1841 /checksum/SHA512/reset/173 425s ok 1842 /checksum/SHA512/reset/174 425s ok 1843 /checksum/SHA512/reset/175 425s ok 1844 /checksum/SHA512/reset/176 425s ok 1845 /checksum/SHA512/reset/177 425s ok 1846 /checksum/SHA512/reset/178 425s ok 1847 /checksum/SHA512/reset/179 425s ok 1848 /checksum/SHA512/reset/180 425s ok 1849 /checksum/SHA512/reset/181 425s ok 1850 /checksum/SHA512/reset/182 425s ok 1851 /checksum/SHA512/reset/183 425s # End of reset tests 425s # End of SHA512 tests 425s # End of checksum tests 425s TAP version 14 425s # random seed: R02S9b7d446ca9e2c504bbc5e638fbe1fd0e 425s 1..10 425s # Start of buffered-input-stream tests 425s ok 1 /buffered-input-stream/peek 425s ok 2 /buffered-input-stream/peek-buffer 425s ok 3 /buffered-input-stream/set-buffer-size 425s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 425s ok - glib/buffered-input-stream.test 425s # Running test: glib/completion.test 425s ok - glib/completion.test 425s # Running test: glib/logging.test 425s ok 4 /buffered-input-stream/read-byte 425s ok 5 /buffered-input-stream/read 425s ok 6 /buffered-input-stream/read-async 425s ok 7 /buffered-input-stream/skip 425s ok 8 /buffered-input-stream/skip-async 425s ok 9 /buffered-input-stream/seek 425s # End of buffered-input-stream tests 425s # Start of filter-input-stream tests 425s ok 10 /filter-input-stream/close 425s # End of filter-input-stream tests 425s TAP version 14 425s # random seed: R02S37b4a83019e21052535d64ea2e1adc5d 425s 1..1 425s # Start of completion tests 425s ok 1 /completion/test-completion 425s # End of completion tests 425s TAP version 14 425s # random seed: R02S18add032959d6a8a5be419dbd23484f6 425s 1..20 425s # Start of logging tests 425s ok 1 /logging/default-handler 425s ok 2 /logging/journald-handler 425s ok 3 /logging/warnings 425s ok 4 /logging/fatal-log-mask 425s ok 5 /logging/always-fatal 425s # bu-DEBUG: message 425s # ba-DEBUG: message 425s # ba-INFO: message 425s ok 6 /logging/set-handler 425s ok 7 /logging/print-handler 425s ok 8 /logging/printerr-handler 425s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 425s # The Log Message Handler 425s # 425s # The Good Fail Message Handler 425s # 425s ok 9 /logging/653052 425s ok 10 /logging/gibberish 425s # Start of default-handler tests 425s # Start of subprocess tests 425s # End of subprocess tests 425s # End of default-handler tests 425s # End of logging tests 425s # Start of structured-logging tests 425s ok 11 /structured-logging/no-state 425s ok 12 /structured-logging/some-state 425s # /structured-logging/recursion-overflow summary: Test that g_log_structured always sets n_fields correctly. 425s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3760 425s ok 13 /structured-logging/recursion-overflow 425s ok 14 /structured-logging/robustness 425s ok 15 /structured-logging/roundtrip1 425s ok 16 /structured-logging/roundtrip2 425s ok 17 /structured-logging/roundtrip3 425s ok 18 /structured-logging/variant1 425s ok 19 /structured-logging/variant2 425s ok 20 /structured-logging/set-writer-func-twice 425s # End of structured-logging tests 425s ok - glib/logging.test 425s # Running test: glib/binding.test 425s TAP version 14 425s # random seed: R02S1db3c66bc44186104c64d7eae700ae06 425s 1..19 425s # Start of binding tests 425s ok 1 /binding/default 425s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 425s ok 2 /binding/canonicalisation 425s ok 3 /binding/bidirectional 425s ok 4 /binding/transform 425s ok 5 /binding/transform-default 425s ok 6 /binding/transform-closure 425s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 425s ok 7 /binding/chain 425s ok 8 /binding/sync-create 425s ok 9 /binding/invert-boolean 425s ok 10 /binding/same-object 425s ok 11 /binding/unbind 425s ok 12 /binding/unbind-weak 425s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 425s ok 13 /binding/unbind-multiple 425s ok 14 /binding/fail 425s ok 15 /binding/interface 425s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 425s ok 16 /binding/concurrent-unbind 425s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 425s ok 17 /binding/concurrent-finalizing 425s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 425s ok 18 /binding/dispose-source 425s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 425s ok 19 /binding/dispose-target 425s # End of binding tests 425s ok - glib/binding.test 425s # Running test: glib/gdbus-exit-on-close.test 425s TAP version 14 425s # random seed: R02Sdc733cee5c8f41ea5d4f722f4fbd33b2 425s 1..4 425s # Start of gdbus tests 425s # Start of exit-on-close tests 425s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/home 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/cache 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/system-config2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/config 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/system-data2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/data 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/state 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/default/.dirs/runtime 425s ok 1 /gdbus/exit-on-close/default 425s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/home 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/cache 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/system-config2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/config 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/system-data2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/data 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/state 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/true/.dirs/runtime 425s ok 2 /gdbus/exit-on-close/true 425s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/home 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/cache 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/system-config2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/config 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/system-data2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/data 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/state 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/false/.dirs/runtime 425s ok 3 /gdbus/exit-on-close/false 425s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/home 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/cache 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/system-config2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/config 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/system-data2 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/data 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/state 425s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_8GEQE3/gdbus/exit-on-close/we-close/.dirs/runtime 425s ok 4 /gdbus/exit-on-close/we-close 425s # Start of default tests 425s # End of default tests 425s # Start of true tests 425s # End of true tests 425s # Start of false tests 425s # End of false tests 425s # Start of we-close tests 425s # End of we-close tests 425s ok - glib/gdbus-exit-on-close.test 425s # Running test: glib/closure-refcount.test 425s # End of exit-on-close tests 425s # End of gdbus tests 425s TAP version 14 425s # random seed: R02S6a83330f3e391908bb56f7ed219c4ff5 425s 1..1 425s # Start of closure tests 425s # Init 0x57def928cdb0 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from thread1 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from thread2 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from main thread 425s # Yielding from thread1 425s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread2 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from main thread 426s # Yielding from thread1 426s # Stopping 426s # Stopped 426s ok 1 /closure/refcount 426s # slow test /closure/refcount executed in 1.17 secs 426s # End of closure tests 426s ok - glib/closure-refcount.test 426s # Running test: glib/utils.test 426s TAP version 14 426s # random seed: R02Sc87a4357124f6965aac16f82e548a2af 426s 1..41 426s # Start of utils tests 426s ok 1 /utils/language-names 426s # Testing locale ‘en’ 426s # Testing locale ‘sr@latin’ 426s # Testing locale ‘fr_BE’ 426s # Testing locale ‘sr_SR@latin’ 426s # Testing locale ‘sr_SR@latin.UTF-8’ 426s # Testing locale ‘sr@latin_invalid’ 426s # Testing locale ‘sr.UTF-8@latin’ 426s # Testing locale ‘sr.UTF-8_latin’ 426s # Testing locale ‘sr.UTF-8@latin_invalid’ 426s ok 2 /utils/locale-variants 426s ok 3 /utils/version 426s ok 4 /utils/appname 426s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 426s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 426s ok 5 /utils/prgname-thread-safety 426s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 426s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 426s ok 6 /utils/tmpdir 426s ok 7 /utils/basic_bits 426s ok 8 /utils/bits 426s ok 9 /utils/swap 426s ok 10 /utils/find-program 426s ok 11 /utils/find-program-for-path 426s ok 12 /utils/debug 426s ok 13 /utils/codeset 426s ok 14 /utils/codeset2 426s ok 15 /utils/console-charset 426s ok 16 /utils/gettext 426s ok 17 /utils/username 426s ok 18 /utils/realname 426s ok 19 /utils/hostname 426s ok 20 /utils/xdgdirs 426s ok 21 /utils/specialdir 426s # NAME: Ubuntu 426s ok 22 /utils/os-info 426s ok 23 /utils/clear-pointer 426s ok 24 /utils/clear-pointer-cast 426s ok 25 /utils/take-pointer 426s ok 26 /utils/clear-source 426s ok 27 /utils/misc-mem 426s # /utils/aligned-mem summary: Aligned memory allocator 426s # Alignment must not be zero 426s # Alignment must be a power of two 426s # Alignment must be a multiple of sizeof(void*) 426s ok 28 /utils/aligned-mem 426s # /utils/free-sized summary: Check that g_free_sized() works 426s ok 29 /utils/free-sized 426s ok 30 /utils/nullify 426s ok 31 /utils/atexit 426s ok 32 /utils/check-setuid 426s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 426s ok 33 /utils/int-limits 426s ok 34 /utils/clear-list 426s ok 35 /utils/clear-slist 426s ok 36 /utils/steal-handle-id 426s # Start of specialdir tests 426s ok 37 /utils/specialdir/desktop 426s # End of specialdir tests 426s # Start of clear-pointer tests 426s ok 38 /utils/clear-pointer/side-effects 426s # End of clear-pointer tests 426s # Start of aligned-mem tests 426s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 426s ok 39 /utils/aligned-mem/alignment 426s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 426s ok 40 /utils/aligned-mem/zeroed 426s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 426s ok 41 /utils/aligned-mem/free-sized 426s # Start of subprocess tests 426s # End of subprocess tests 426s # End of aligned-mem tests 426s # End of utils tests 426s ok - glib/utils.test 426s # Running test: glib/portal-support-snap.test 426s TAP version 14 426s # random seed: R02S70d772ebcd69b6756f5ed5d09cd280a5 426s 1..7 426s # Start of portal-support tests 426s # Start of snap tests 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/no-snapctl: No such file or directory 426s ok 1 /portal-support/snap/no-snapctl 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none/.dirs/runtime/snapctl 426s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/none: No such file or directory 426s ok 2 /portal-support/snap/none 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all/.dirs/runtime/snapctl 426s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/all: No such file or directory 426s ok 3 /portal-support/snap/all 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 426s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/desktop-only: No such file or directory 426s ok 4 /portal-support/snap/desktop-only 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only/.dirs/runtime/snapctl 426s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/network-only: No such file or directory 426s ok 5 /portal-support/snap/network-only 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 426s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/gsettings-only: No such file or directory 426s ok 6 /portal-support/snap/gsettings-only 426s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/home 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/cache 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/system-config2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/config 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/system-data2 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/data 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/state 426s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime 426s # Created snap.yaml in /tmp/test_portal-support-snap_LMM1E3/meta/snap.yaml 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 426s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 427s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 427s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 427s # Created snapctl in /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 427s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3/portal-support/snap/updates-dynamically: No such file or directory 427s ok 7 /portal-support/snap/updates-dynamically 427s # End of snap tests 427s # End of portal-support tests 427s Unable to clean up temporary directory /tmp/test_portal-support-snap_LMM1E3: No such file or directory 427s ok - glib/portal-support-snap.test 427s # Running test: glib/utils-isolated.test 427s TAP version 14 427s # random seed: R02Sa5a1a0892a7fdb657d3ebc33cd82d4dd 427s 1..11 427s # Start of utils-isolated tests 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/tmp-dir/.dirs/runtime 427s ok 1 /utils-isolated/tmp-dir 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/home-dir/.dirs/runtime 427s ok 2 /utils-isolated/home-dir 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-cache-dir/.dirs/runtime 427s ok 3 /utils-isolated/user-cache-dir 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-config-dirs/.dirs/runtime 427s ok 4 /utils-isolated/system-config-dirs 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-config-dir/.dirs/runtime 427s ok 5 /utils-isolated/user-config-dir 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/system-data-dirs/.dirs/runtime 427s ok 6 /utils-isolated/system-data-dirs 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-data-dir/.dirs/runtime 427s ok 7 /utils-isolated/user-data-dir 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-state-dir/.dirs/runtime 427s ok 8 /utils-isolated/user-state-dir 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/user-runtime-dir/.dirs/runtime 427s ok 9 /utils-isolated/user-runtime-dir 427s # Start of cleanup tests 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/runtime 427s Unable to clean up temporary directory /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 427s Unable to clean up temporary directory /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 427s Unable to clean up temporary directory /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/handles-errors: Directory not empty 427s ok 10 /utils-isolated/cleanup/handles-errors 427s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 427s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 427s Unable to clean up temporary directory /tmp/test_utils-isolated_G8N2E3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 427s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 427s # End of cleanup tests 427s # End of utils-isolated tests 427s ok - glib/utils-isolated.test 427s # Running test: glib/ir-parser.test 427s TAP version 14 427s # random seed: R02Sdc6f1a9d6d60261efc4922750278fb1c 427s 1..1 427s # Start of ir-parser tests 427s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: pushing node 1 dummy 427s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: popping node 1 dummy 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: pushing node 1 dummy 427s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: popping node 1 dummy 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: 427s # GLib-GIRepository-DEBUG: pushing node 1 dummy 427s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error4GB file test 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/load-contents-4gb/.dirs/runtime 443s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/load-contents-4gb-async/.dirs/runtime 443s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/.dirs/runtime 443s ok 25 /file/writev 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/build-attribute-list-for-copy/.dirs/runtime 443s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 443s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 443s # 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::* 443s # 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::* 443s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 443s # Attributes for copy: standard::size,xattr::* 443s # Attributes for copy: standard::size,unix::mode,xattr::* 443s ok 26 /file/build-attribute-list-for-copy 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/move_async/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/move_async/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/move_async/.dirs/system-config1:/tmp/test_file_2K7VE3/file/move_async/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/move_async/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/move_async/.dirs/system-data1:/tmp/test_file_2K7VE3/file/move_async/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/move_async/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/move_async/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/move_async/.dirs/runtime 443s ok 27 /file/move_async 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/move-async-with-closures/.dirs/runtime 443s ok 28 /file/move-async-with-closures 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/query-zero-length-content-type/.dirs/runtime 443s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 443s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 443s ok 29 /file/query-zero-length-content-type 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/runtime 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/data/applications 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/config 443s ok 30 /file/query-default-handler-file 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/runtime 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/data/applications 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/config 443s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_2K7VE3/file/query-default-handler-file/.dirs/config to /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/config 443s ok 31 /file/query-default-handler-file-async 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/runtime 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/data/applications 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/config 443s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_2K7VE3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/config 443s ok 32 /file/query-default-handler-uri 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/runtime 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/data/applications 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/config 443s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_2K7VE3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/config 443s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_2K7VE3/file/query-default-handler-uri-async/.dirs/config 443s ok 33 /file/query-default-handler-uri-async 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/enumerator-cancellation/.dirs/runtime 443s ok 34 /file/enumerator-cancellation 443s # Start of async-create-delete tests 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/async-create-delete/0/.dirs/runtime 443s ok 35 /file/async-create-delete/0 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/async-create-delete/1/.dirs/runtime 443s ok 36 /file/async-create-delete/1 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/async-create-delete/10/.dirs/runtime 443s ok 37 /file/async-create-delete/10 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/async-create-delete/25/.dirs/runtime 443s ok 38 /file/async-create-delete/25 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/async-create-delete/4096/.dirs/runtime 443s ok 39 /file/async-create-delete/4096 443s # End of async-create-delete tests 443s # Start of replace-symlink tests 443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/home 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/cache 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/system-config2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/config 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/system-data2 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/data 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/state 443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/replace-symlink/using-etag/.dirs/runtime 443s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 443s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 443s # Using temporary directory /tmp/test_file_2K7VE3/g_file_replace_symlink_using_etag_205HE3 444s # Executing: glib/file.test 445s ok 40 /file/replace-symlink/using-etag 445s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 445s # End of replace-symlink tests 445s # Start of replace tests 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_2K7VE3/file/replace/write-only/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_2K7VE3/file/replace/write-only/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/replace/write-only/.dirs/runtime 445s # /file/replace/write-only summary: Test various situations for g_file_replace() 445s # Current umask: 2 445s # Test 0, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_B4VHE3 445s # Test 1, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_PZVHE3 445s # Test 2, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_IFXHE3 445s # Test 3, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_5DYHE3 445s # Test 4, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_ZOYHE3 445s # Test 5, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_6JYHE3 445s # Test 6, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_G0ZHE3 445s # Test 7, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_CE1HE3 445s # Test 8, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_JA1HE3 445s # Test 9, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_0L1HE3 445s # Test 10, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_EHFIE3 445s # Test 11, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_ZVGIE3 445s # Test 12, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_A8GIE3 445s # Test 13, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_78GIE3 445s # Test 14, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_LKIIE3 445s # Test 15, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_QKJIE3 445s # Test 16, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_6GKIE3 445s # Test 17, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_N38HE3 445s # Test 18, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_D29HE3 445s # Test 19, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_B1AIE3 445s # Test 20, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_ZHCIE3 445s # Test 21, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_LMDIE3 445s # Test 22, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_9PRIE3 445s # Test 23, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_9NRIE3 445s # Test 24, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_R7RIE3 445s # Test 25, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_Z5SIE3 445s # Test 26, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_4GTIE3 445s # Test 27, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_WDTIE3 445s # Test 28, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_9NUIE3 445s # Test 29, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_8LVIE3 445s # Test 30, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_WWVIE3 445s # Test 31, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_MTVIE3 445s # Test 32, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_34WIE3 445s # Test 33, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_A1LIE3 445s # Test 34, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_W7LIE3 445s # Test 35, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_53LIE3 445s # Test 36, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_YMNIE3 445s # Test 37, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_QQOIE3 445s # Test 38, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_XEPIE3 445s # Test 39, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_WJQIE3 445s # Test 40, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_683IE3 445s # Test 41, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_GD5IE3 445s # Test 42, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_AB6IE3 445s # Test 43, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_4I7IE3 445s # Test 44, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_NS8IE3 445s # Test 45, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_QM8IE3 445s # Test 46, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_5Y9IE3 445s # Test 47, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_0U9IE3 445s # Test 48, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_YXYIE3 445s # We do not have CAP_DAC_OVERRIDE or equivalent 445s ok 41 /file/replace/write-only 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_2K7VE3/file/replace/read-write/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_2K7VE3/file/replace/read-write/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/replace/read-write/.dirs/runtime 445s # /file/replace/read-write summary: Test various situations for g_file_replace() 445s # Current umask: 2 445s # Test 0, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_U0YIE3 445s # Test 1, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_L9YIE3 445s # Test 2, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_8F0IE3 445s # Test 3, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_ST1IE3 445s # Test 4, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_4P1IE3 445s # Test 5, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_HS1IE3 445s # Test 6, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_RE2IE3 445s # Test 7, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_RI3IE3 445s # Test 8, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_MV3IE3 445s # Test 9, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_3R3IE3 445s # Test 10, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_8KHJE3 445s # Test 11, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_IRIJE3 445s # Test 12, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_H2IJE3 445s # Test 13, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_1XIJE3 445s # Test 14, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_H9JJE3 445s # Test 15, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_WFLJE3 445s # Test 16, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_9LMJE3 445s # Test 17, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_2TAJE3 445s # Test 18, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_F0BJE3 445s # Test 19, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_ROCJE3 445s # Test 20, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_ITDJE3 445s # Test 21, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_YZEJE3 445s # Test 22, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_GCGJE3 445s # Test 23, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_19FJE3 445s # Test 24, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_T6TJE3 445s # Test 25, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_7IVJE3 445s # Test 26, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_0FVJE3 445s # Test 27, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_6OVJE3 445s # Test 28, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_OSWJE3 445s # Test 29, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_IKXJE3 445s # Test 30, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_CGXJE3 445s # Test 31, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_HQXJE3 445s # Test 32, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_VNYJE3 445s # Test 33, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_AGNJE3 445s # Test 34, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_LCNJE3 445s # Test 35, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_NDNJE3 445s # Test 36, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_BWOJE3 445s # Test 37, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_OXPJE3 445s # Test 38, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_T7QJE3 445s # Test 39, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_TLSJE3 445s # Test 40, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_MG6JE3 445s # Test 41, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_JL7JE3 445s # Test 42, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_QX7JE3 445s # Test 43, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_E58JE3 445s # Test 44, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_0FAKE3 445s # Test 45, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_199JE3 445s # Test 46, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_EKBKE3 445s # Test 47, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_4FBKE3 445s # Test 48, using temporary directory /tmp/test_file_2K7VE3/g_file_replace_S3ZJE3 445s # We do not have CAP_DAC_OVERRIDE or equivalent 445s ok 42 /file/replace/read-write 445s # End of replace tests 445s # Start of copy tests 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/system-config1:/tmp/test_file_2K7VE3/file/copy/progress/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/system-data1:/tmp/test_file_2K7VE3/file/copy/progress/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/copy/progress/.dirs/runtime 445s ok 43 /file/copy/progress 445s # End of copy tests 445s # Start of writev tests 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/no-bytes-written/.dirs/runtime 445s ok 44 /file/writev/no-bytes-written 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/no-vectors/.dirs/runtime 445s ok 45 /file/writev/no-vectors 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/empty-vectors/.dirs/runtime 445s ok 46 /file/writev/empty-vectors 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/too-big-vectors/.dirs/runtime 445s ok 47 /file/writev/too-big-vectors 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/async/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/async/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/async/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/async/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/async/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/async/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/async/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/async/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/async/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/async/.dirs/runtime 445s ok 48 /file/writev/async 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/async_all/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/async_all/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/async_all/.dirs/runtime 445s ok 49 /file/writev/async_all 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/async_all-empty-vectors/.dirs/runtime 445s ok 50 /file/writev/async_all-empty-vectors 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/async_all-no-vectors/.dirs/runtime 445s ok 51 /file/writev/async_all-no-vectors 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/async_all-to-big-vectors/.dirs/runtime 445s ok 52 /file/writev/async_all-to-big-vectors 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/writev/async_all-cancellation/.dirs/runtime 445s ok - glib/file.test 445s # Running test: glib/gdbus-close-pending.test 445s ok 53 /file/writev/async_all-cancellation 445s # End of writev tests 445s # Start of from-uri tests 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/from-uri/ignores-query-string/.dirs/runtime 445s ok 54 /file/from-uri/ignores-query-string 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_2K7VE3/file/from-uri/ignores-fragment/.dirs/runtime 445s ok 55 /file/from-uri/ignores-fragment 445s # End of from-uri tests 445s # End of file tests 445s TAP version 14 445s # random seed: R02S59ecc84d31d273431269f5d33060aa08 445s 1..2 445s # Start of gdbus tests 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/close-pending/.dirs/runtime 445s ok 1 /gdbus/close-pending 445s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/home 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/cache 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/system-config2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/config 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/system-data2 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/data 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/state 445s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_RR5JE3/gdbus/unref-pending/.dirs/runtime 446s ok 2 /gdbus/unref-pending 446s # End of gdbus tests 446s ok - glib/gdbus-close-pending.test 446s # Running test: glib/thread-pool-slow.test 446s TAP version 14 446s # random seed: R02Se53f7d681a62475831c3cbda42a0a6dd 446s 1..7 446s # Start of threadpool tests 446s ok 1 /threadpool/functions 446s ok 2 /threadpool/stop-unused 446s # slow test /threadpool/stop-unused executed in 0.51 secs 446s ok 3 /threadpool/pools 446s # [unsorted] ===> pushed new thread with id:62, number of threads:1, unprocessed:1 446s # [unsorted] ===> pushed new thread with id:80, number of threads:2, unprocessed:1 446s # [unsorted] ===> pushed new thread with id:16, number of threads:3, unprocessed:2 446s # [unsorted] ===> pushed new thread with id:11, number of threads:4, unprocessed:3 446s # [unsorted] ===> pushed new thread with id:82, number of threads:5, unprocessed:4 446s # [unsorted] ===> pushed new thread with id:100, number of threads:6, unprocessed:5 446s # [unsorted] ===> pushed new thread with id:56, number of threads:7, unprocessed:6 446s # [unsorted] ===> pushed new thread with id:10, number of threads:8, unprocessed:7 446s # [unsorted] ===> pushed new thread with id:31, number of threads:9, unprocessed:8 446s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:9 446s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:10 446s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:11 446s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:12 446s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:13 446s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:14 446s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:15 446s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:16 446s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:17 446s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:18 446s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:19 446s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:20 446s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:21 446s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:22 446s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:23 446s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:24 446s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:25 446s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:26 446s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:27 446s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:28 446s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:29 446s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:30 446s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:31 446s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:32 446s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:33 446s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:34 446s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:35 446s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:36 446s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:37 446s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:38 446s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:39 446s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:40 446s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:41 446s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:42 446s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:43 446s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:44 446s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:45 446s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:46 446s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:47 446s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:48 446s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:49 446s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:50 446s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:51 446s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:52 446s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:53 446s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:54 446s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:55 446s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:56 446s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:57 446s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:58 446s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:59 446s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:60 446s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:61 446s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:62 446s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:63 446s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:64 446s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:65 446s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:66 446s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:67 446s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:68 446s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:69 446s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:70 446s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:71 446s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:72 446s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:73 446s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:74 446s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:75 446s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:76 446s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:77 446s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:78 446s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:79 446s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:80 446s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:81 446s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:82 446s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:83 446s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:84 446s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:85 446s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:86 446s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:87 446s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:88 446s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:89 446s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:90 446s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:91 446s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:92 446s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:93 446s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:94 446s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:95 446s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:96 446s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:97 446s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:98 446s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:99 446s ok 4 /threadpool/no-sort 446s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:1 446s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:2 446s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:3 446s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:4 446s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:5 446s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:6 446s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:7 446s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:8 446s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:9 446s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:10 446s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:11 446s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:12 446s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:13 446s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:14 446s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:15 446s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:16 446s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:17 446s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:18 446s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:19 446s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:20 446s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:21 446s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:22 446s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:23 446s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:24 446s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:25 446s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:26 446s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:27 446s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:28 446s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:29 446s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:30 446s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:31 446s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:32 446s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:33 446s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:34 446s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:35 446s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:36 446s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:37 446s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:38 446s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:39 446s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:40 446s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:41 446s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:42 446s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:43 446s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:44 446s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:45 446s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:46 446s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:47 446s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:48 446s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:49 446s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:50 446s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:51 446s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:52 446s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:53 446s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:54 446s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:55 446s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:56 446s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:57 446s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:58 446s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:59 446s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:60 446s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:61 446s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:62 446s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:63 446s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:64 446s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:65 446s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:66 446s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:67 446s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:68 446s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:69 446s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:70 446s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:71 446s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:72 446s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:73 446s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:74 446s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:75 446s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:76 446s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:77 446s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:78 446s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:79 446s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:80 446s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:81 446s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:82 446s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:83 446s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:84 446s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:85 446s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:86 446s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:87 446s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:88 446s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:89 446s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:90 446s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:91 446s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:92 446s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:93 446s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:94 446s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:95 446s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:96 446s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:97 446s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:98 446s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:99 446s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:100 446s # Starting thread pool processing 446s ok 5 /threadpool/sort 447s ok 6 /threadpool/stop-unused-multiple 447s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 447s # Pool idle thread count: 0, unprocessed jobs: 45 447s # Pool idle thread count: 0, unprocessed jobs: 0 447s # Pool idle thread count: 0, unprocessed jobs: 0 448s # Pool idle thread count: 10, unprocessed jobs: 0 448s # Pool idle thread count: 10, unprocessed jobs: 0 448s # Pool idle thread count: 10, unprocessed jobs: 0 448s # Pool idle thread count: 10, unprocessed jobs: 0 449s # Executing: glib/thread-pool-slow.test 449s # Pool idle thread count: 10, unprocessed jobs: 0 449s # Pool idle thread count: 10, unprocessed jobs: 0 449s # Pool idle thread count: 10, unprocessed jobs: 0 449s # Pool idle thread count: 10, unprocessed jobs: 0 450s # Pool idle thread count: 10, unprocessed jobs: 0 450s # Pool idle thread count: 10, unprocessed jobs: 0 450s # Pool idle thread count: 10, unprocessed jobs: 0 450s # Pool idle thread count: 10, unprocessed jobs: 0 451s # Pool idle thread count: 10, unprocessed jobs: 0 451s # Pool idle thread count: 10, unprocessed jobs: 0 451s # Pool idle thread count: 10, unprocessed jobs: 0 451s # Pool idle thread count: 10, unprocessed jobs: 0 452s # Pool idle thread count: 10, unprocessed jobs: 0 452s # Pool idle thread count: 10, unprocessed jobs: 0 452s # Pool idle thread count: 10, unprocessed jobs: 0 452s # Pool idle thread count: 10, unprocessed jobs: 0 453s # Pool idle thread count: 10, unprocessed jobs: 0 453s # Pool idle thread count: 10, unprocessed jobs: 0 453s # Pool idle thread count: 10, unprocessed jobs: 0 453s # Pool idle thread count: 10, unprocessed jobs: 0 454s # Executing: glib/thread-pool-slow.test 454s # Pool idle thread count: 10, unprocessed jobs: 0 454s # Pool idle thread count: 10, unprocessed jobs: 0 454s # Pool idle thread count: 10, unprocessed jobs: 0 454s # Pool idle thread count: 10, unprocessed jobs: 0 455s # Pool idle thread count: 10, unprocessed jobs: 0 455s # Pool idle thread count: 10, unprocessed jobs: 0 455s # Pool idle thread count: 10, unprocessed jobs: 0 455s # Pool idle thread count: 10, unprocessed jobs: 0 456s # Pool idle thread count: 10, unprocessed jobs: 2 456s # Pool idle thread count: 8, unprocessed jobs: 0 456s # Pool idle thread count: 8, unprocessed jobs: 0 456s # Pool idle thread count: 8, unprocessed jobs: 0 456s # Pool idle thread count: 10, unprocessed jobs: 0 456s # Pool idle thread count: 10, unprocessed jobs: 0 457s # Pool idle thread count: 10, unprocessed jobs: 0 457s # Pool idle thread count: 10, unprocessed jobs: 0 457s # Pool idle thread count: 10, unprocessed jobs: 0 457s # Pool idle thread count: 10, unprocessed jobs: 0 458s # Pool idle thread count: 2, unprocessed jobs: 0 458s # Pool idle thread count: 2, unprocessed jobs: 0 458s # Pool idle thread count: 2, unprocessed jobs: 0 458s # Pool idle thread count: 2, unprocessed jobs: 0 459s # Executing: glib/thread-pool-slow.test 459s # Pool idle thread count: 2, unprocessed jobs: 0 459s # Pool idle thread count: 2, unprocessed jobs: 0 459s # Pool idle thread count: 2, unprocessed jobs: 0 459s # Pool idle thread count: 2, unprocessed jobs: 0 460s # Pool idle thread count: 2, unprocessed jobs: 0 460s # Pool idle thread count: 2, unprocessed jobs: 0 460s # Pool idle thread count: 2, unprocessed jobs: 0 460s # Pool idle thread count: 2, unprocessed jobs: 0 461s # Pool idle thread count: 2, unprocessed jobs: 0 461s # Pool idle thread count: 2, unprocessed jobs: 0 461s # Pool idle thread count: 2, unprocessed jobs: 0 461s # Pool idle thread count: 2, unprocessed jobs: 0 462s # Pool idle thread count: 2, unprocessed jobs: 0 462s # Pool idle thread count: 2, unprocessed jobs: 0 462s # Pool idle thread count: 2, unprocessed jobs: 0 462s # Pool idle thread count: 2, unprocessed jobs: 0 463s # Pool idle thread count: 2, unprocessed jobs: 0 463s # Pool idle thread count: 2, unprocessed jobs: 0 463s # Pool idle thread count: 2, unprocessed jobs: 0 463s # Pool idle thread count: 2, unprocessed jobs: 0 464s # Executing: glib/thread-pool-slow.test 464s # Pool idle thread count: 2, unprocessed jobs: 0 464s # Pool idle thread count: 2, unprocessed jobs: 0 464s # Pool idle thread count: 2, unprocessed jobs: 0 464s # Pool idle thread count: 2, unprocessed jobs: 0 465s # Pool idle thread count: 2, unprocessed jobs: 0 465s # Pool idle thread count: 2, unprocessed jobs: 0 465s # Pool idle thread count: 2, unprocessed jobs: 0 465s # Pool idle thread count: 2, unprocessed jobs: 0 466s # Pool idle thread count: 2, unprocessed jobs: 0 466s # Pool idle thread count: 2, unprocessed jobs: 0 466s ok - glib/thread-pool-slow.test 466s # Running test: glib/unix-mounts.test 466s ok 7 /threadpool/idle-time 466s # slow test /threadpool/idle-time executed in 19.52 secs 466s # End of threadpool tests 466s TAP version 14 466s # random seed: R02Sda300be101927cde3bb865d59c9c32b7 466s 1..4 466s # Start of unix-mounts tests 466s ok 1 /unix-mounts/is-system-fs-type 466s ok 2 /unix-mounts/is-system-device-path 466s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 466s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 466s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 466s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 466s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 466s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 466s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 466s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 466s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 466s ok 3 /unix-mounts/get-mount-points 466s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 466s ok - glib/unix-mounts.test 466s # Running test: glib/data-input-stream.test 466s ok 4 /unix-mounts/get-mount-entries 466s # End of unix-mounts tests 466s TAP version 14 466s # random seed: R02Sf522de4652a1c1bbd50c3eb4f8bb6657 466s 1..10 466s # Start of data-input-stream tests 466s ok 1 /data-input-stream/basic 466s ok 2 /data-input-stream/read-lines-LF 466s ok 3 /data-input-stream/read-lines-LF-valid-utf8 466s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 466s ok 5 /data-input-stream/read-lines-CR 466s ok 6 /data-input-stream/read-lines-CR-LF 466s ok 7 /data-input-stream/read-lines-any 466s ok 8 /data-input-stream/read-until 466s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 466s # Test vector 1: {"key": "value"}? and ? 466s ok 9 /data-input-stream/read-upto 466s ok - glib/data-input-stream.test 466s ok 10 /data-input-stream/read-int 466s # End of data-input-stream tests 466s # Running test: glib/gnotification.test 466s TAP version 14 466s # random seed: R02Sc3a96c3533922e28ede0152b96f0c62e 466s 1..2 466s # Start of gnotification tests 466s ok 1 /gnotification/basic 466s ok 2 /gnotification/properties 466s # End of gnotification tests 466s ok - glib/gnotification.test 466s # Running test: glib/unicode.test 466s TAP version 14 466s # random seed: R02Sb2544fa5f4e85e72fbed19c89e14972e 466s 1..39 466s # Start of unicode tests 466s ok 1 /unicode/alnum 466s ok 2 /unicode/alpha 466s ok 3 /unicode/break-type 466s ok 4 /unicode/canonical-decomposition 466s ok 5 /unicode/casefold 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s # Cannot set locale to lt_LT, skipping 466s ok 6 /unicode/casemap_and_casefold 466s ok 7 /unicode/cases 466s ok 8 /unicode/character-type 466s ok 9 /unicode/cntrl 466s ok 10 /unicode/combining-class 466s # Composing U+000041 and U+000042; expecting U+000000 466s # Composing U+000041 and U+000000; expecting U+000000 466s # Composing U+000066 and U+000069; expecting U+000000 466s # Composing U+000308 and U+000301; expecting U+000000 466s # Composing U+000f71 and U+000f72; expecting U+000000 466s # Composing U+00212b and U+000000; expecting U+000000 466s # Composing U+0000c5 and U+000000; expecting U+000000 466s # Composing U+002126 and U+000000; expecting U+000000 466s # Composing U+0003a9 and U+000000; expecting U+000000 466s # Composing U+000041 and U+00030a; expecting U+0000c5 466s # Composing U+00006f and U+000302; expecting U+0000f4 466s # Composing U+001e63 and U+000307; expecting U+001e69 466s # Composing U+000073 and U+000323; expecting U+001e63 466s # Composing U+000064 and U+000307; expecting U+001e0b 466s # Composing U+000064 and U+000323; expecting U+001e0d 467s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 467s # Composing U+001111 and U+001171; expecting U+00d4cc 467s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 467s # Composing U+00110e and U+001173; expecting U+00ce20 467s # Composing U+001100 and U+001160; expecting U+000000 467s # Composing U+001100 and U+001177; expecting U+000000 467s # Composing U+00abff and U+0011b6; expecting U+000000 467s # Composing U+00d7a5 and U+0011b6; expecting U+000000 467s # Composing U+00ac01 and U+0011b6; expecting U+000000 467s # Composing U+00d4cc and U+0011a6; expecting U+000000 467s # Composing U+00d4cc and U+0011c4; expecting U+000000 467s # Composing U+01611e and U+01611e; expecting U+016121 467s # Composing U+01611e and U+01611f; expecting U+016123 467s # Composing U+0000f6 and U+000304; expecting U+00022b 467s # Composing U+000b47 and U+000b57; expecting U+000b4c 467s # Composing U+0000a0 and U+000b57; expecting U+000000 467s # Composing U+016e00 and U+00030a; expecting U+000000 467s # Composing U+00212b and U+016e00; expecting U+000000 467s # Composing U+001e63 and U+000306; expecting U+000000 467s # Composing U+001e63 and U+000304; expecting U+000000 467s # Composing U+001e63 and U+000b57; expecting U+000000 467s # Composing U+001e63 and U+000000; expecting U+000000 467s # Composing U+001e63 and U+0113c2; expecting U+000000 467s # Composing U+001f01 and U+0113c2; expecting U+000000 467s # Composing U+00006e and U+000302; expecting U+000000 467s # Composing U+001e63 and U+01611f; expecting U+000000 467s # Composing U+01138e and U+0113b8; expecting U+000000 467s # Composing U+01611e and U+000000; expecting U+000000 467s # Composing U+000000 and U+01611f; expecting U+000000 467s # Composing U+011390 and U+0113c2; expecting U+000000 467s ok 11 /unicode/compose 467s ok 12 /unicode/decompose 467s ok 13 /unicode/decompose-tail 467s ok 14 /unicode/defined 467s ok 15 /unicode/digit 467s ok 16 /unicode/digit-value 467s # Fully decomposing U+000041; expecting 1 codepoints 467s # Fully decomposing U+00fb01; expecting 1 codepoints 467s # Fully decomposing U+00212b; expecting 2 codepoints 467s # Fully decomposing U+002126; expecting 1 codepoints 467s # Fully decomposing U+000344; expecting 2 codepoints 467s # Fully decomposing U+000f73; expecting 2 codepoints 467s # Fully decomposing U+0000c5; expecting 2 codepoints 467s # Fully decomposing U+0000f4; expecting 2 codepoints 467s # Fully decomposing U+001e69; expecting 3 codepoints 467s # Fully decomposing U+001e63; expecting 2 codepoints 467s # Fully decomposing U+001e0b; expecting 2 codepoints 467s # Fully decomposing U+001e0d; expecting 2 codepoints 467s # Fully decomposing U+00d4db; expecting 3 codepoints 467s # Fully decomposing U+00d4cc; expecting 2 codepoints 467s # Fully decomposing U+00ce31; expecting 3 codepoints 467s # Fully decomposing U+00ce20; expecting 2 codepoints 467s ok 17 /unicode/fully-decompose-canonical 467s ok 18 /unicode/fully-decompose-len 467s ok 19 /unicode/normalization 467s ok 20 /unicode/graph 467s # Testing script Zyyy (code 1517910393) 467s # Testing script Zinh (code 1516858984) 467s # Testing script Zmth (code 1517122664) 467s # Testing script Arab (code 1098015074) 467s # Testing script Armn (code 1098018158) 467s # Testing script Beng (code 1113943655) 467s # Testing script Bopo (code 1114599535) 467s # Testing script Cher (code 1130915186) 467s # Testing script Copt (code 1131376756) 467s # Testing script Cyrl (code 1132032620) 467s # Testing script Dsrt (code 1148416628) 467s # Testing script Deva (code 1147500129) 467s # Testing script Ethi (code 1165256809) 467s # Testing script Geor (code 1197830002) 467s # Testing script Goth (code 1198486632) 467s # Testing script Grek (code 1198679403) 467s # Testing script Gujr (code 1198877298) 467s # Testing script Guru (code 1198879349) 467s # Testing script Hani (code 1214344809) 467s # Testing script Hang (code 1214344807) 467s # Testing script Hebr (code 1214603890) 467s # Testing script Hira (code 1214870113) 467s # Testing script Knda (code 1265525857) 467s # Testing script Kana (code 1264676449) 467s # Testing script Khmr (code 1265134962) 467s # Testing script Laoo (code 1281453935) 467s # Testing script Latn (code 1281455214) 467s # Testing script Mlym (code 1298954605) 467s # Testing script Mong (code 1299148391) 467s # Testing script Mymr (code 1299803506) 467s # Testing script Ogam (code 1332175213) 467s # Testing script Ital (code 1232363884) 467s # Testing script Orya (code 1332902241) 467s # Testing script Runr (code 1383427698) 467s # Testing script Sinh (code 1399418472) 467s # Testing script Syrc (code 1400468067) 467s # Testing script Taml (code 1415671148) 467s # Testing script Telu (code 1415933045) 467s # Testing script Thaa (code 1416126817) 467s # Testing script Thai (code 1416126825) 467s # Testing script Tibt (code 1416192628) 467s # Testing script Cans (code 1130458739) 467s # Testing script Yiii (code 1500080489) 467s # Testing script Tglg (code 1416064103) 467s # Testing script Hano (code 1214344815) 467s # Testing script Buhd (code 1114990692) 467s # Testing script Tagb (code 1415669602) 467s # Testing script Brai (code 1114792297) 467s # Testing script Cprt (code 1131442804) 467s # Testing script Limb (code 1281977698) 467s # Testing script Osma (code 1332964705) 467s # Testing script Shaw (code 1399349623) 467s # Testing script Linb (code 1281977954) 467s # Testing script Tale (code 1415670885) 467s # Testing script Ugar (code 1432838514) 467s # Testing script Talu (code 1415670901) 467s # Testing script Bugi (code 1114990441) 467s # Testing script Glag (code 1198285159) 467s # Testing script Tfng (code 1415999079) 467s # Testing script Sylo (code 1400466543) 467s # Testing script Xpeo (code 1483761007) 467s # Testing script Khar (code 1265131890) 467s # Testing script Zzzz (code 1517976186) 467s # Testing script Bali (code 1113681001) 467s # Testing script Xsux (code 1483961720) 467s # Testing script Phnx (code 1349021304) 467s # Testing script Phag (code 1349017959) 467s # Testing script Nkoo (code 1315663727) 467s # Testing script Kali (code 1264675945) 467s # Testing script Lepc (code 1281716323) 467s # Testing script Rjng (code 1382706791) 467s # Testing script Sund (code 1400204900) 467s # Testing script Saur (code 1398895986) 467s # Testing script Cham (code 1130914157) 467s # Testing script Olck (code 1332503403) 467s # Testing script Vaii (code 1449224553) 467s # Testing script Cari (code 1130459753) 467s # Testing script Lyci (code 1283023721) 467s # Testing script Lydi (code 1283023977) 467s # Testing script Avst (code 1098281844) 467s # Testing script Bamu (code 1113681269) 467s # Testing script Egyp (code 1164409200) 467s # Testing script Armi (code 1098018153) 467s # Testing script Phli (code 1349020777) 467s # Testing script Prti (code 1349678185) 467s # Testing script Java (code 1247901281) 467s # Testing script Kthi (code 1265920105) 467s # Testing script Lisu (code 1281979253) 467s # Testing script Mtei (code 1299473769) 467s ok - glib/unicode.test 467s # Running test: glib/signalgroup.test 467s ok - glib/signalgroup.test 467s # Running test: glib/spawn-multithreaded.test 467s # Testing script Sarb (code 1398895202) 467s # Testing script Orkh (code 1332898664) 467s # Testing script Samr (code 1398893938) 467s # Testing script Lana (code 1281453665) 467s # Testing script Tavt (code 1415673460) 467s # Testing script Batk (code 1113683051) 467s # Testing script Brah (code 1114792296) 467s # Testing script Mand (code 1298230884) 467s # Testing script Cakm (code 1130457965) 467s # Testing script Merc (code 1298494051) 467s # Testing script Mero (code 1298494063) 467s # Testing script Plrd (code 1349284452) 467s # Testing script Shrd (code 1399353956) 467s # Testing script Sora (code 1399812705) 467s # Testing script Takr (code 1415670642) 467s # Testing script Bass (code 1113682803) 467s # Testing script Aghb (code 1097295970) 467s # Testing script Dupl (code 1148547180) 467s # Testing script Elba (code 1164730977) 467s # Testing script Gran (code 1198678382) 467s # Testing script Khoj (code 1265135466) 467s # Testing script Sind (code 1399418468) 467s # Testing script Lina (code 1281977953) 467s # Testing script Mahj (code 1298229354) 467s # Testing script Mani (code 1298230889) 467s # Testing script Mend (code 1298493028) 467s # Testing script Modi (code 1299145833) 467s # Testing script Mroo (code 1299345263) 467s # Testing script Nbat (code 1315070324) 467s # Testing script Narb (code 1315009122) 467s # Testing script Perm (code 1348825709) 467s # Testing script Hmng (code 1215131239) 467s # Testing script Palm (code 1348562029) 467s # Testing script Pauc (code 1348564323) 467s # Testing script Phlp (code 1349020784) 467s # Testing script Sidd (code 1399415908) 467s # Testing script Tirh (code 1416196712) 467s # Testing script Wara (code 1466004065) 467s # Testing script Ahom (code 1097363309) 467s # Testing script Hluw (code 1215067511) 467s # Testing script Hatr (code 1214346354) 467s # Testing script Mult (code 1299541108) 467s # Testing script Hung (code 1215655527) 467s # Testing script Sgnw (code 1399287415) 467s # Testing script Adlm (code 1097100397) 467s # Testing script Bhks (code 1114139507) 467s # Testing script Marc (code 1298231907) 467s # Testing script Newa (code 1315272545) 467s # Testing script Osge (code 1332963173) 467s # Testing script Tang (code 1415671399) 467s # Testing script Gonm (code 1198485101) 467s # Testing script Nshu (code 1316186229) 467s # Testing script Soyo (code 1399814511) 467s # Testing script Zanb (code 1516334690) 467s # Testing script Dogr (code 1148151666) 467s # Testing script Gong (code 1198485095) 467s # Testing script Rohg (code 1383032935) 467s # Testing script Maka (code 1298230113) 467s # Testing script Medf (code 1298490470) 467s # Testing script Sogo (code 1399809903) 467s # Testing script Sogd (code 1399809892) 467s # Testing script Elym (code 1164736877) 467s # Testing script Nand (code 1315008100) 467s # Testing script Hmnp (code 1215131248) 467s # Testing script Wcho (code 1466132591) 467s # Testing script Chrs (code 1130918515) 467s # Testing script Diak (code 1147756907) 467s # Testing script Kits (code 1265202291) 467s # Testing script Yezi (code 1499822697) 467s # Testing script Cpmn (code 1131441518) 467s # Testing script Ougr (code 1333094258) 467s # Testing script Tnsa (code 1416524641) 467s # Testing script Toto (code 1416590447) 467s # Testing script Vith (code 1449751656) 467s # Testing script Kawi (code 1264678761) 467s # Testing script Nagm (code 1315006317) 467s # Testing script Todr (code 1416586354) 467s # Testing script Gara (code 1197568609) 467s # Testing script Tutg (code 1416983655) 467s # Testing script Sunu (code 1400204917) 467s # Testing script Gukh (code 1198877544) 467s # Testing script Krai (code 1265787241) 467s # Testing script Onao (code 1332633967) 467s ok 21 /unicode/iso15924 467s ok 22 /unicode/lower 467s ok 23 /unicode/mark 467s ok 24 /unicode/mirror 467s ok 25 /unicode/print 467s ok 26 /unicode/punctuation 467s ok 27 /unicode/script 467s ok 28 /unicode/space 467s ok 29 /unicode/strdown 467s ok 30 /unicode/strup 467s ok 31 /unicode/turkish-strupdown 467s ok 32 /unicode/title 467s ok 33 /unicode/upper 467s ok 34 /unicode/validate 467s ok 35 /unicode/wide 467s ok 36 /unicode/xdigit 467s ok 37 /unicode/xdigit-value 467s ok 38 /unicode/zero-width 467s ok 39 /unicode/normalize 467s # End of unicode tests 467s TAP version 14 467s # random seed: R02Sdbc85f45edbec681aa81823b39942d14 467s 1..9 467s # Start of GObject tests 467s # Start of SignalGroup tests 467s ok 1 /GObject/SignalGroup/invalid 467s ok 2 /GObject/SignalGroup/simple 467s ok 3 /GObject/SignalGroup/changing-target 467s ok 4 /GObject/SignalGroup/blocking 467s ok 5 /GObject/SignalGroup/weak-ref-target 467s ok 6 /GObject/SignalGroup/connect-object 467s ok 7 /GObject/SignalGroup/signal-parsing 467s ok 8 /GObject/SignalGroup/properties 467s ok 9 /GObject/SignalGroup/interface 467s # Start of signal-parsing tests 467s # End of signal-parsing tests 467s # End of SignalGroup tests 467s # End of GObject tests 467s TAP version 14 467s # random seed: R02S0bf9be44a354c7f94aa0e18f48eae506 467s 1..4 467s # Start of gthread tests 468s # Child 3655 (ttl 1) exited, status 0 469s # Child 3656 (ttl 2) exited, status 0 469s ok 1 /gthread/spawn-childs 469s # slow test /gthread/spawn-childs executed in 2.00 secs 469s # Created pid: 3660 (ttl 1) 469s # Created pid: 3661 (ttl 2) 469s # Executing: glib/spawn-multithreaded.test 470s # Child 3660 (ttl 1) exited, status 0 471s # Child 3661 (ttl 2) exited, status 0 471s ok 2 /gthread/spawn-childs-threads 471s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 471s ok 3 /gthread/spawn-sync 471s ok 4 /gthread/spawn-async 471s # End of gthread tests 471s ok - glib/spawn-multithreaded.test 471s # Running test: glib/gvariant.test 471s TAP version 14 471s # random seed: R02S4b3dd57d53b2f039d7e1b9a5df510ae4 471s 1..69 471s # Start of gvariant tests 471s ok 1 /gvariant/type 471s ok 2 /gvariant/typeinfo 471s ok 3 /gvariant/string 471s ok 4 /gvariant/utf8 471s ok 5 /gvariant/utf8-new-strings 471s ok 6 /gvariant/containers 471s ok 7 /gvariant/format-strings 471s ok 8 /gvariant/invalid-varargs 471s ok 9 /gvariant/varargs 471s ok 10 /gvariant/valist 471s ok 11 /gvariant/builder-memory 471s ok 12 /gvariant/hashing 471s ok 13 /gvariant/byteswap 471s ok 14 /gvariant/parser 471s ok 15 /gvariant/parse-failures 471s ok 16 /gvariant/parse-positional 471s ok 17 /gvariant/floating 471s ok 18 /gvariant/bytestring 471s ok 19 /gvariant/lookup-value 471s ok 20 /gvariant/lookup 471s ok 21 /gvariant/compare 471s ok 22 /gvariant/equal 471s ok 23 /gvariant/fixed-array 471s ok 24 /gvariant/check-format-string 471s ok 25 /gvariant/checksum-basic 471s ok 26 /gvariant/checksum-nested 471s ok 27 /gvariant/gbytes 471s ok 28 /gvariant/print-context 471s ok 29 /gvariant/error-quark 471s ok 30 /gvariant/stack-builder-init 471s ok 31 /gvariant/stack-builder-init-static 471s ok 32 /gvariant/stack-builder-init-unset 471s ok 33 /gvariant/stack-dict-init 471s ok 34 /gvariant/unaligned-construction 471s # Start of type tests 471s # Start of string-scan tests 471s # Start of recursion tests 471s ok 35 /gvariant/type/string-scan/recursion/tuple 471s ok 36 /gvariant/type/string-scan/recursion/array 471s # End of recursion tests 471s # End of string-scan tests 471s # End of type tests 471s # Start of serialiser tests 471s ok 37 /gvariant/serialiser/maybe 471s ok 38 /gvariant/serialiser/array 471s ok 39 /gvariant/serialiser/tuple 471s ok 40 /gvariant/serialiser/variant 471s ok 41 /gvariant/serialiser/strings 472s ok 42 /gvariant/serialiser/byteswap 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 472s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 472s ok 43 /gvariant/serialiser/children 472s # Start of byteswap tests 472s ok 44 /gvariant/serialiser/byteswap/zero-sized 472s # End of byteswap tests 472s # Start of fuzz tests 472s ok 45 /gvariant/serialiser/fuzz/1% 472s ok 46 /gvariant/serialiser/fuzz/5% 472s ok 47 /gvariant/serialiser/fuzz/9% 472s ok 48 /gvariant/serialiser/fuzz/13% 472s ok 49 /gvariant/serialiser/fuzz/17% 472s # End of fuzz tests 472s # End of serialiser tests 472s # Start of utf8 tests 472s # Start of subprocess tests 472s # End of subprocess tests 472s # End of utf8 tests 472s # Start of varargs tests 472s # Start of subprocess tests 472s # End of subprocess tests 472s # End of varargs tests 472s # Start of byteswap tests 472s # /gvariant/byteswap/non-normal-non-aligned summary: Test that calling g_variant_byteswap() on a variant which is in non-normal form and doesn’t need byteswapping returns the same variant in normal form. 472s ok 50 /gvariant/byteswap/non-normal-non-aligned 472s # End of byteswap tests 472s # Start of parser tests 472s ok 51 /gvariant/parser/integer-bounds 472s ok 52 /gvariant/parser/recursion 472s # Start of recursion tests 472s ok 53 /gvariant/parser/recursion/typedecls 472s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 472s # Text form 0: @mmmu 5 472s # Text form 1: @mmmas ['hello'] 472s # Text form 2: @mmmu just just nothing 472s # Text form 3: @mmmas just just nothing 472s # Text form 4: @mmmu just nothing 472s # Text form 5: @mmmas just nothing 472s # Text form 6: @mmmu nothing 472s # Text form 7: @mmmas nothing 472s ok 54 /gvariant/parser/recursion/maybes 472s # End of recursion tests 472s # End of parser tests 472s # Start of parse tests 472s # Start of subprocess tests 472s # End of subprocess tests 472s # End of parse tests 472s # Start of normal-checking tests 472s ok 55 /gvariant/normal-checking/tuples 472s ok 56 /gvariant/normal-checking/array-offsets 472s ok 57 /gvariant/normal-checking/array-offsets2 472s ok 58 /gvariant/normal-checking/tuple-offsets 472s ok 59 /gvariant/normal-checking/tuple-offsets2 472s ok 60 /gvariant/normal-checking/tuple-offsets3 472s ok 61 /gvariant/normal-checking/tuple-offsets4 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 472s ok 62 /gvariant/normal-checking/tuple-offsets5 472s ok 63 /gvariant/normal-checking/empty-object-path 472s # Start of array-offsets tests 472s ok 64 /gvariant/normal-checking/array-offsets/overlapped 472s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 472s # End of array-offsets tests 472s # Start of tuple-offsets tests 472s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 472s # End of tuple-offsets tests 472s # End of normal-checking tests 472s # Start of recursion-limits tests 472s ok 67 /gvariant/recursion-limits/variant-in-variant 472s ok 68 /gvariant/recursion-limits/array-in-variant 472s # End of recursion-limits tests 472s # End of gvariant tests 472s # Start of gvarianttype tests 472s ok 69 /gvarianttype/hash 472s # End of gvarianttype tests 472s ok - glib/gvariant.test 472s # Running test: glib/filter-streams.test 472s TAP version 14 472s # random seed: R02Seb1641351d8f9338537f681e4b4ea46f 472s 1..4 472s # Start of filter-stream tests 472s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 472s ok 1 /filter-stream/input 472s ok 2 /filter-stream/output 472s ok 3 /filter-stream/async-input 472s ok - glib/filter-streams.test 472s # Running test: glib/param.test 472s ok 4 /filter-stream/async-output 472s # End of filter-stream tests 472s TAP version 14 472s # random seed: R02S25060fe3c1c6881fbbdfe0fc238e9aef 472s 1..32 472s # Start of param tests 472s ok 1 /param/value 472s ok 2 /param/strings 472s ok 3 /param/qdata 472s ok 4 /param/validate 472s ok 5 /param/convert 472s ok 6 /param/implement # SKIP Skipping slow /param/implement test 472s ok 7 /param/default 472s ok 8 /param/is-valid-name 472s # Start of invalid-name tests 472s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 472s ok 9 /param/invalid-name/colon 472s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 472s ok 10 /param/invalid-name/first-char 472s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 472s ok 11 /param/invalid-name/empty 472s # End of invalid-name tests 472s # Start of implement tests 472s # Start of subprocess tests 472s # End of subprocess tests 472s # End of implement tests 472s # End of param tests 472s # Start of value tests 472s ok 12 /value/transform 472s # End of value tests 472s # Start of paramspec tests 472s ok 13 /paramspec/char 472s ok 14 /paramspec/uchar 472s ok 15 /paramspec/int 472s ok 16 /paramspec/uint 472s ok 17 /paramspec/long 472s ok 18 /paramspec/ulong 472s ok 19 /paramspec/int64 472s ok 20 /paramspec/uint64 472s ok 21 /paramspec/float 472s ok 22 /paramspec/double 472s ok 23 /paramspec/unichar 472s ok 24 /paramspec/param 472s ok 25 /paramspec/null-param 472s ok 26 /paramspec/string 472s ok 27 /paramspec/override 472s ok 28 /paramspec/gtype 472s ok 29 /paramspec/variant 472s ok 30 /paramspec/custom 472s ok 31 /paramspec/pool 472s # Start of variant tests 472s ok 32 /paramspec/variant/cmp 472s # End of variant tests 472s # End of paramspec tests 472s ok - glib/param.test 472s # Running test: glib/trash.test 472s ok - glib/trash.test 472s TAP version 14 472s # random seed: R02S3741befe3b023d01aa92df7b1e456bd5 472s 1..3 472s # Start of trash tests 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 472s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 472s # File: /tmp/test-trashQ1SYE3 (parent st_dev: 64769) 472s # Home: /home/ubuntu (st_dev: 64769) 472s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 472s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 472s ok 3 /trash/long-filename 472s # End of trash tests 472s # Running test: glib/environment.test 472s ok - glib/environment.test 472s # Running test: glib/closure.test 472s TAP version 14 472s # random seed: R02S3f07b6e231b6b2bd39781715a5b3efa0 472s 1..7 472s # Start of environ tests 472s # /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. 472s ok 1 /environ/listenv 472s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 472s ok 2 /environ/getenv 472s ok 3 /environ/setenv 472s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 472s ok 4 /environ/array 472s # /environ/null summary: Test getting and setting variables on a NULL envp array. 472s ok 5 /environ/null 472s # /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. 472s ok 6 /environ/case 472s # /environ/expansion summary: Test expansion of environment variable references. 472s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 472s # End of environ tests 472s TAP version 14 472s # random seed: R02Sa7d9e0dde37e5d75d45c943e0e3e710e 472s 1..6 472s # Start of closure tests 472s ok 1 /closure/idle 472s ok 2 /closure/timeout 472s ok 3 /closure/iochannel 472s ok 4 /closure/child 472s ok 5 /closure/fd 472s ok 6 /closure/signal 472s # End of closure tests 472s ok - glib/closure.test 472s # Running test: glib/repository.test 472s TAP version 14 472s # random seed: R02Sf14e9153ecf4b63ce8b2a20ebfcbf436 472s 1..24 472s # Start of repository tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/basic/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/basic/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/basic/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/basic/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/basic/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/basic/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/basic/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/basic/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/basic/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/basic/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 472s ok 1 /repository/basic 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/info/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/info/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/info/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/info/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/info/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/info/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/info/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/info/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/info/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/info/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/info summary: Test retrieving some basic info blobs from a typelib 472s ok 2 /repository/info 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/dependencies/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/dependencies/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/dependencies/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 472s ok 3 /repository/dependencies 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/arg-info/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/arg-info/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/arg-info/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 472s ok 4 /repository/arg-info 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/callable-info/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/callable-info/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/callable-info/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 472s ok 5 /repository/callable-info 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/callback-info/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/callback-info/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/callback-info/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 472s ok 6 /repository/callback-info 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/char-types/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/char-types/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/char-types/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 472s ok 7 /repository/char-types 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/constructor-return-type/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 472s ok 8 /repository/constructor-return-type 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/enum-info-c-identifier/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 472s ok 9 /repository/enum-info-c-identifier 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/enum-info-static-methods/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/enum-info-static-methods summary: Test an enum with methods 472s ok 10 /repository/enum-info-static-methods 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/error-quark/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/error-quark/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/error-quark/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/error-quark summary: Test finding an error quark by error domain 472s ok 11 /repository/error-quark 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/flags-info-c-identifier/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 472s ok 12 /repository/flags-info-c-identifier 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/fundamental-ref-func/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 472s ok 13 /repository/fundamental-ref-func 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/instance-method-ownership-transfer/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 472s ok 14 /repository/instance-method-ownership-transfer 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/object-gtype-interfaces/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 472s ok 15 /repository/object-gtype-interfaces 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/signal-info-with-array-length-arg/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 472s ok 16 /repository/signal-info-with-array-length-arg 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/type-info-name/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 472s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 472s ok 17 /repository/type-info-name 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-no-invoker/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 472s ok 18 /repository/vfunc-info-with-no-invoker 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 472s ok 19 /repository/vfunc-info-with-invoker-on-interface 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 472s ok - glib/repository.test 472s # Running test: glib/cxx-98.test 472s ok - glib/cxx-98.test 472s # Running test: glib/bindinggroup.test 472s ok - glib/bindinggroup.test 472s # Running test: glib/gdbus-serialization.test 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 472s ok 20 /repository/vfunc-info-with-invoker-on-object 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/find-by-gtype/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/find-by-gtype summary: Test finding a GType 472s ok 21 /repository/find-by-gtype 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/loaded-namespaces/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/loaded-namespaces summary: Test listing loaded namespaces 472s ok 22 /repository/loaded-namespaces 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/dup_default/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/dup_default/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/dup_default/.dirs/runtime 472s ok 23 /repository/dup_default 472s # Start of base-info tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_2I6YE3/repository/base-info/clear/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 472s ok 24 /repository/base-info/clear 472s # End of base-info tests 472s # End of repository tests 472s TAP version 14 472s # random seed: R02S7ab695557548e3f38d65b63747f36028 472s 1..2 472s # Start of gtask tests 472s # 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. 472s ok 1 /gtask/name 472s # Start of name tests 472s # 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. 472s ok 2 /gtask/name/macro-wrapper 472s # End of name tests 472s # End of gtask tests 472s TAP version 14 472s # random seed: R02S590a3ed1c4ae23a5c788745c47d9835b 472s 1..11 472s # Start of GObject tests 472s # Start of BindingGroup tests 472s ok 1 /GObject/BindingGroup/invalid 472s ok 2 /GObject/BindingGroup/default 472s ok 3 /GObject/BindingGroup/bidirectional 472s ok 4 /GObject/BindingGroup/transform 472s ok 5 /GObject/BindingGroup/transform-closures 472s ok 6 /GObject/BindingGroup/same-object 472s ok 7 /GObject/BindingGroup/weak-ref-source 472s ok 8 /GObject/BindingGroup/weak-ref-target 472s ok 9 /GObject/BindingGroup/properties 472s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 472s ok 11 /GObject/BindingGroup/empty-closures 472s # End of BindingGroup tests 472s # End of GObject tests 472s TAP version 14 472s # random seed: R02S28bd6862db8a217433e89b946aa8561c 472s 1..18 472s # Start of gdbus tests 472s # Start of message-serialize tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/basic/.dirs/runtime 472s ok 1 /gdbus/message-serialize/basic 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/complex/.dirs/runtime 472s ok 2 /gdbus/message-serialize/complex 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/invalid/.dirs/runtime 472s ok 3 /gdbus/message-serialize/invalid 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/.dirs/runtime 472s ok 4 /gdbus/message-serialize/header-checks 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/double-array/.dirs/runtime 472s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 472s ok 5 /gdbus/message-serialize/double-array 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/empty-structure/.dirs/runtime 472s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 472s ok 6 /gdbus/message-serialize/empty-structure 472s # Start of header-checks tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 472s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 472s ok 7 /gdbus/message-serialize/header-checks/valid 472s # End of header-checks tests 472s # End of message-serialize tests 472s # Start of message-parse tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 472s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 472s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/non-signature-header/.dirs/runtime 472s ok 9 /gdbus/message-parse/non-signature-header 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-signature-header/.dirs/runtime 472s ok 10 /gdbus/message-parse/empty-signature-header 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 472s ok 11 /gdbus/message-parse/multiple-signature-header 472s ok - glib/gdbus-serialization.test 472s # Running test: glib/memory-monitor-dbus.test 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 472s ok 12 /gdbus/message-parse/over-long-signature-header 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 472s ok 13 /gdbus/message-parse/deep-header-nesting 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 472s ok 14 /gdbus/message-parse/deep-body-nesting 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/truncated/.dirs/runtime 472s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 472s ok 15 /gdbus/message-parse/truncated 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/empty-structure/.dirs/runtime 472s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 472s ok 16 /gdbus/message-parse/empty-structure 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/missing-header/.dirs/runtime 472s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 472s ok 17 /gdbus/message-parse/missing-header 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WAHZE3/gdbus/message-parse/invalid-header-type/.dirs/runtime 472s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 472s ok 18 /gdbus/message-parse/invalid-header-type 472s # End of message-parse tests 472s # End of gdbus tests 472s TAP version 13 472s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 472s 1..1 472s ok - glib/memory-monitor-dbus.test 472s # Running test: glib/refcount-macro.test 472s TAP version 14 472s # random seed: R02S5ee490b34b5e1b751f66e55ceaa772b2 472s 1..4 472s # Start of refcount tests 472s ok 1 /refcount/grefcount 472s ok 2 /refcount/gatomicrefcount 472s # Start of grefcount tests 472s ok 3 /refcount/grefcount/saturation 472s # End of grefcount tests 472s # Start of gatomicrefcount tests 472s ok 4 /refcount/gatomicrefcount/saturation 472s # End of gatomicrefcount tests 472s # End of refcount tests 472s ok - glib/refcount-macro.test 472s # Running test: glib/gthash.test 472s ok - glib/gthash.test 472s TAP version 14 472s # random seed: R02S6313d78a271dfb97937c84dea30d0629 472s 1..1 472s # Start of gthash tests 472s ok 1 /gthash/build-retrieve 472s # End of gthash tests 472s # Running test: glib/async-close-output-stream.test 472s TAP version 14 472s # random seed: R02S163daad9377013240ff52a5bb5685450 472s 1..3 472s # Start of close-async tests 472s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 472s ok 1 /close-async/without-flush 472s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 472s ok 2 /close-async/with-flush 472s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 472s ok 3 /close-async/with-async-flush 472s # End of close-async tests 472s ok - glib/async-close-output-stream.test 472s # Running test: glib/strvbuilder.test 472s TAP version 14 472s # random seed: R02S99d93f20152f5024346e1831b46e2817 472s 1..7 472s # Start of strvbuilder tests 472s ok 1 /strvbuilder/empty 472s ok 2 /strvbuilder/add 472s ok 3 /strvbuilder/addv 472s ok 4 /strvbuilder/add_many 472s ok 5 /strvbuilder/take 472s ok 6 /strvbuilder/ref 472s ok 7 /strvbuilder/unref_to_strv 472s # End of strvbuilder tests 472s ok - glib/strvbuilder.test 472s # Running test: glib/print.test 472s TAP version 14 472s # random seed: R02S7a8b8608cae3be181a2a8a2213d9f7e6 472s 1..1 472s ok 1 /print-console # SKIP Testing console output only supported on Windows 472s ok - glib/print.test 472s # Running test: glib/readwrite.test 472s TAP version 14 472s # random seed: R02Sd01e09746d784107be22c6f7937bfa4b 472s 1..3 472s # Start of readwrite tests 472s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 472s ok 1 /readwrite/test_g_file_open_readwrite 472s ok 2 /readwrite/test_g_file_create_readwrite 472s ok 3 /readwrite/test_g_file_replace_readwrite 472s # End of readwrite tests 472s ok - glib/readwrite.test 472s # Running test: glib/basic-signals.test 472s TAP version 14 472s # random seed: R02S7a09af8c21e98638655b8aa1c54a621b 472s 1..1 472s # Start of gobject tests 472s ok 1 /gobject/basic-signals 472s # End of gobject tests 472s ok - glib/basic-signals.test 472s # Running test: glib/init.test 472s ok - glib/init.test 472s # Running test: glib/io-channel.test 472s TAP version 14 472s # random seed: R02S900655938e9e9a9b4c39a9cbebb46e43 472s 1..2 472s # Start of thread tests 472s # Start of deprecated tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_OTL1E3/thread/deprecated/init/.dirs/runtime 472s ok 1 /thread/deprecated/init 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_OTL1E3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 472s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 472s # End of deprecated tests 472s # End of thread tests 472s TAP version 14 472s # random seed: R02S80eaa040934ea57267f8af46efb8d523 472s 1..2 472s # Start of io-channel tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_GHN1E3/io-channel/read-write/.dirs/runtime 472s # Line one 472s # 472s # Line two 472s # 472s # Line three 472s # 472s # /* Hello */ 472s # 472s # \x1234\x567890\x6666 472s # 472s # read 62 bytes, wrote 62 bytes 472s ok 1 /io-channel/read-write 472s # Start of read-line tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_GHN1E3/io-channel/read-line/embedded-nuls/.dirs/runtime 472s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 472s ok 2 /io-channel/read-line/embedded-nuls 472s # End of read-line tests 472s # End of io-channel tests 472s ok - glib/io-channel.test 472s # Running test: glib/thread-pool.test 472s TAP version 14 472s # random seed: R02S4aea50358ee69e5feb54420e2d4dc27e 472s 1..6 472s # Start of thread_pool tests 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 472s ok 1 /thread_pool/pool_fail 472s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 472s ok 2 /thread_pool/shared 472s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 472s ok 3 /thread_pool/exclusive 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 472s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 472s ok 4 /thread_pool/create_shared_after_exclusive 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 472s ok 5 /thread_pool/create_full 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 472s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 472s ok 6 /thread_pool/create_exclusive_after_shared 472s # End of thread_pool tests 472s ok - glib/thread-pool.test 472s # Running test: glib/notify-init.test 472s TAP version 14 472s # random seed: R02Seed666a3a7c7c1d8bb70e90940aaee36 472s 1..1 472s # Start of properties tests 472s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 472s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 472s ok 1 /properties/notify-in-init 472s # End of properties tests 472s ok - glib/notify-init.test 472s # Running test: glib/volumemonitor.test 472s TAP version 14 472s # random seed: R02Sb2d1338b10c1f478970ab234c1a10080 472s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 472s 1..3 472s # Start of volumemonitor tests 472s ok 1 /volumemonitor/connected_drives 472s ok 2 /volumemonitor/volumes 472s ok 3 /volumemonitor/mounts 472s # End of volumemonitor tests 472s ok - glib/volumemonitor.test 472s # Running test: glib/registered-type-info.test 472s TAP version 14 472s # random seed: R02Sa043de5b0b8d456d10d9cf5437790bc6 472s 1..1 472s # Start of registered-type-info tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_2111E3/registered-type-info/boxed/.dirs/runtime 472s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 472s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 472s # Expecting CClosure to not be boxed 472s # Expecting TypeCValue to not be boxed 472s # Expecting InitiallyUnownedClass to not be boxed 472s # Expecting BookmarkFile to be boxed 472s # Expecting Closure to be boxed 472s # Expecting Object to not be boxed 472s ok 1 /registered-type-info/boxed 472s # End of registered-type-info tests 472s ok - glib/registered-type-info.test 472s # Running test: glib/gdbus-auth.test 472s TAP version 14 472s # random seed: R02Sd766685feadb0b4ba24f59cab9d00f54 472s 1..5 472s # Start of gdbus tests 472s # Start of auth tests 472s # Start of client tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/EXTERNAL/.dirs/runtime 472s ok 1 /gdbus/auth/client/EXTERNAL 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 472s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 472s # End of client tests 472s # Start of server tests 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 472s ok 3 /gdbus/auth/server/ANONYMOUS 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/EXTERNAL/.dirs/runtime 472s ok 4 /gdbus/auth/server/EXTERNAL 472s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 472s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_6HG2E3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 472s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 472s # End of server tests 472s # End of auth tests 472s # End of gdbus tests 472s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 472s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 472s ok - glib/gdbus-auth.test 472s # Running test: glib/object.test 472s TAP version 14 472s # random seed: R02Sf083aeb8f6ce3e91f12fdd4e54ef3648 472s 1..2 472s # Start of object tests 472s # Start of constructor tests 472s ok 1 /object/constructor/singleton 472s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 472s # End of constructor tests 472s # End of object tests 472s ok - glib/object.test 472s # Running test: glib/mount-operation.test 472s TAP version 14 472s # random seed: R02Se2e4b1a2c9b23eee4692d8e7e7fcd86c 472s 1..2 472s # Start of mount-operation tests 472s ok 1 /mount-operation/construction 472s ok 2 /mount-operation/properties 472s # End of mount-operation tests 472s ok - glib/mount-operation.test 473s # Running test: glib/gdbus-error.test 473s TAP version 14 473s # random seed: R02S732e9841862068a5ba790c93ad20dce3 473s 1..4 473s # Start of gdbus tests 473s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/home 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/cache 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/system-config2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/config 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/system-data2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/data 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/state 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_NXC2E3/gdbus/registered-errors/.dirs/runtime 473s ok 1 /gdbus/registered-errors 473s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/home 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/cache 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/system-config2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/config 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/system-data2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/data 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/state 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_NXC2E3/gdbus/unregistered-errors/.dirs/runtime 473s ok 2 /gdbus/unregistered-errors 473s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/home 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/cache 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/system-config2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/config 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/system-data2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/data 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/state 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_NXC2E3/gdbus/transparent-gerror/.dirs/runtime 473s ok 3 /gdbus/transparent-gerror 473s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/home 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/cache 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/system-config2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/config 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/system-data2 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/data 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/state 473s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_NXC2E3/gdbus/register-error/.dirs/runtime 473s ok 4 /gdbus/register-error 473s # End of gdbus tests 473s ok - glib/gdbus-error.test 473s # Running test: glib/network-monitor-race.test 473s TAP version 14 473s # random seed: R02S0f1f15b58bfa10bc6ec498fc1b713fc2 473s 1..1 473s # Start of network-monitor tests 473s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 474s # Executing: glib/network-monitor-race.test 475s ok - glib/network-monitor-race.test 475s ok 1 /network-monitor/create-in-thread 475s # slow test /network-monitor/create-in-thread executed in 2.09 secs 475s # End of network-monitor tests 475s TAP version 14 475s # random seed: R02Sd162f002ea4d90deaec9ed1eca226f55 475s # GLib-DEBUG: Current user locale: C.UTF-8 475s 1..6 475s # Start of search tests 475s # GLib-DEBUG: Started 475s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 475s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 475s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 475s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 475s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 475s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 475s ok 1 /search/basic 475s # GLib-DEBUG: Started 475s # Running test: glib/search-utils.test 475s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 475s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 475s # GLib-DEBUG: 'ele' - 'élève' should match: OK 475s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 475s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 475s ok 2 /search/composed 475s # GLib-DEBUG: Started 475s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 475s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 475s ok 3 /search/decomposed 475s # GLib-DEBUG: Started 475s ok - glib/search-utils.test 475s # Running test: glib/cxx-11.test 475s ok - glib/cxx-11.test 475s # Running test: glib/gdbus-introspection.test 475s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 475s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 475s ok 4 /search/turkish 475s # GLib-DEBUG: Started 475s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 475s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 475s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 475s ok 5 /search/c_locale_unicode 475s # GLib-DEBUG: Started 475s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 475s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 475s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 475s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 475s ok 6 /search/multi_words 475s # End of search tests 475s TAP version 14 475s # random seed: R02S39014f56302f460f07f431f39ad1f359 475s 1..2 475s # Start of gtask tests 475s # 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. 475s ok 1 /gtask/name 475s # Start of name tests 475s # 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. 475s ok 2 /gtask/name/macro-wrapper 475s # End of name tests 475s # End of gtask tests 475s TAP version 14 475s # random seed: R02Se8c71a8a0cbe3f5df93def27356ca6d4 475s 1..4 475s # Start of gdbus tests 475s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/home 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/cache 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/system-config2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/config 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/system-data2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/data 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/state 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-parser/.dirs/runtime 475s ok 1 /gdbus/introspection-parser 475s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/home 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/cache 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/system-config2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/config 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/system-data2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/data 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/state 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-generate/.dirs/runtime 475s ok 2 /gdbus/introspection-generate 475s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/home 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/cache 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/system-config2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/config 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/system-data2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/data 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/state 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-default-direction/.dirs/runtime 475s ok 3 /gdbus/introspection-default-direction 475s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/home 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/cache 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/system-config2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/config 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/system-data2 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/data 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/state 475s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_UMOTE3/gdbus/introspection-extra-data/.dirs/runtime 475s ok 4 /gdbus/introspection-extra-data 475s # End of gdbus tests 475s ok - glib/gdbus-introspection.test 475s # Running test: glib/spawn-singlethread.test 475s ok - glib/spawn-singlethread.test 475s # Running test: glib/pattern.test 475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 475s TAP version 14 475s # random seed: R02Sc9ff0f72e0fa49c8fd5a8478422de522 475s 1..9 475s # Start of gthread tests 475s ok 1 /gthread/spawn-single-sync 475s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 475s ok 2 /gthread/spawn-stderr-socket 475s ok 3 /gthread/spawn-single-async 475s # thread 1 475s # thread 1 475s ok 4 /gthread/spawn-single-async-with-fds 475s ok 5 /gthread/spawn-async-with-invalid-fds 475s ok 6 /gthread/spawn-script 475s ok 7 /gthread/spawn-posix-spawn 475s # Start of spawn tests 475s ok 8 /gthread/spawn/nonexistent 475s # FD map: 475s # • 5 → 15 475s # • 6 → 16 475s # • 7 → 17 475s # • 8 → 18 475s # • 9 → 19 475s # • 10 → 20 475s # • 11 → 21 475s # • 12 → 22 475s # • 13 → 23 475s # • 3 → 13 475s ok 9 /gthread/spawn/fd-assignment-clash 475s # End of spawn tests 475s # End of gthread tests 475s TAP version 14 475s # random seed: R02Sfcaee0a338deec5abbee9b4e708a4f64 475s 1..90 475s # Start of pattern tests 475s # Start of compile tests 475s ok 1 /pattern/compile/0 475s ok 2 /pattern/compile/1 475s ok 3 /pattern/compile/2 475s ok 4 /pattern/compile/3 475s ok 5 /pattern/compile/4 475s ok 6 /pattern/compile/5 475s ok 7 /pattern/compile/6 475s ok 8 /pattern/compile/7 475s ok 9 /pattern/compile/8 475s ok 10 /pattern/compile/9 475s ok 11 /pattern/compile/10 475s ok 12 /pattern/compile/11 475s ok 13 /pattern/compile/12 475s ok 14 /pattern/compile/13 475s # End of compile tests 475s # Start of copy tests 475s ok 15 /pattern/copy/0 475s ok 16 /pattern/copy/1 475s ok 17 /pattern/copy/2 475s ok 18 /pattern/copy/3 475s ok 19 /pattern/copy/4 475s ok 20 /pattern/copy/5 475s ok 21 /pattern/copy/6 475s ok 22 /pattern/copy/7 475s ok 23 /pattern/copy/8 475s ok 24 /pattern/copy/9 475s ok 25 /pattern/copy/10 475s ok - glib/pattern.test 475s # Running test: glib/messages-low-memory.py.test 475s ok 26 /pattern/copy/11 475s ok 27 /pattern/copy/12 475s ok 28 /pattern/copy/13 475s # End of copy tests 475s # Start of match tests 475s ok 29 /pattern/match/0 475s ok 30 /pattern/match/1 475s ok 31 /pattern/match/2 475s ok 32 /pattern/match/3 475s ok 33 /pattern/match/4 475s ok 34 /pattern/match/5 475s ok 35 /pattern/match/6 475s ok 36 /pattern/match/7 475s ok 37 /pattern/match/8 475s ok 38 /pattern/match/9 475s ok 39 /pattern/match/10 475s ok 40 /pattern/match/11 475s ok 41 /pattern/match/12 475s ok 42 /pattern/match/13 475s ok 43 /pattern/match/14 475s ok 44 /pattern/match/15 475s ok 45 /pattern/match/16 475s ok 46 /pattern/match/17 475s ok 47 /pattern/match/18 475s ok 48 /pattern/match/19 475s ok 49 /pattern/match/20 475s ok 50 /pattern/match/21 475s ok 51 /pattern/match/22 475s ok 52 /pattern/match/23 475s ok 53 /pattern/match/24 475s ok 54 /pattern/match/25 475s ok 55 /pattern/match/26 475s ok 56 /pattern/match/27 475s ok 57 /pattern/match/28 475s ok 58 /pattern/match/29 475s ok 59 /pattern/match/30 475s ok 60 /pattern/match/31 475s ok 61 /pattern/match/32 475s ok 62 /pattern/match/33 475s ok 63 /pattern/match/34 475s ok 64 /pattern/match/35 475s ok 65 /pattern/match/36 475s ok 66 /pattern/match/37 475s ok 67 /pattern/match/38 475s ok 68 /pattern/match/39 475s ok 69 /pattern/match/40 475s ok 70 /pattern/match/41 475s ok 71 /pattern/match/42 475s ok 72 /pattern/match/43 475s ok 73 /pattern/match/44 475s ok 74 /pattern/match/45 475s ok 75 /pattern/match/46 475s ok 76 /pattern/match/47 475s ok 77 /pattern/match/48 475s ok 78 /pattern/match/49 475s ok 79 /pattern/match/50 475s # End of match tests 475s # Start of equal tests 475s ok 80 /pattern/equal/0 475s ok 81 /pattern/equal/1 475s ok 82 /pattern/equal/2 475s ok 83 /pattern/equal/3 475s ok 84 /pattern/equal/4 475s ok 85 /pattern/equal/5 475s ok 86 /pattern/equal/6 475s ok 87 /pattern/equal/7 475s ok 88 /pattern/equal/8 475s ok 89 /pattern/equal/9 475s ok 90 /pattern/equal/10 475s # End of equal tests 475s # End of pattern tests 475s TAP version 13 475s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 475s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 475s # tmpdir: /tmp/tmpef86banj 475s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 475s # Return code: -6 475s # Output: 475s # 475s # Error: 475s # GLib-Message: 23:20:35.884: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 475s # GLib-Message: 23:20:35.884: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 475s # ../../../glib/gprintf.c:351: failed to allocate memory 475s 1..1 475s ok - glib/messages-low-memory.py.test 475s # Running test: glib/slice.test 475s TAP version 14 475s # random seed: R02Sa6c7a8b1bde317e6db1a649ff0214dd0 475s 1..3 475s # Start of slice tests 475s ok 1 /slice/copy 475s ok 2 /slice/chain 475s ok 3 /slice/allocate 475s # End of slice tests 475s ok - glib/slice.test 475s # Running test: glib/utils-c-99.test 475s TAP version 14 475s # random seed: R02S33c50b4f8121d89679242115c797b498 475s 1..41 475s # Start of utils tests 475s ok 1 /utils/language-names 475s # Testing locale ‘en’ 475s # Testing locale ‘sr@latin’ 475s # Testing locale ‘fr_BE’ 475s # Testing locale ‘sr_SR@latin’ 475s # Testing locale ‘sr_SR@latin.UTF-8’ 475s # Testing locale ‘sr@latin_invalid’ 475s # Testing locale ‘sr.UTF-8@latin’ 475s # Testing locale ‘sr.UTF-8_latin’ 475s # Testing locale ‘sr.UTF-8@latin_invalid’ 475s ok 2 /utils/locale-variants 475s ok 3 /utils/version 475s ok 4 /utils/appname 475s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 475s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 475s ok 5 /utils/prgname-thread-safety 475s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 475s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 475s ok 6 /utils/tmpdir 475s ok 7 /utils/basic_bits 475s ok 8 /utils/bits 475s ok 9 /utils/swap 475s ok 10 /utils/find-program 475s ok 11 /utils/find-program-for-path 475s ok 12 /utils/debug 475s ok 13 /utils/codeset 475s ok 14 /utils/codeset2 475s ok 15 /utils/console-charset 475s ok 16 /utils/gettext 475s ok 17 /utils/username 475s ok 18 /utils/realname 475s ok 19 /utils/hostname 475s ok 20 /utils/xdgdirs 475s ok 21 /utils/specialdir 475s # NAME: Ubuntu 475s ok 22 /utils/os-info 475s ok 23 /utils/clear-pointer 475s ok 24 /utils/clear-pointer-cast 475s ok 25 /utils/take-pointer 475s ok 26 /utils/clear-source 475s ok 27 /utils/misc-mem 475s # /utils/aligned-mem summary: Aligned memory allocator 475s # Alignment must not be zero 475s # Alignment must be a power of two 475s # Alignment must be a multiple of sizeof(void*) 475s ok 28 /utils/aligned-mem 475s # /utils/free-sized summary: Check that g_free_sized() works 475s ok 29 /utils/free-sized 475s ok 30 /utils/nullify 475s ok 31 /utils/atexit 475s ok 32 /utils/check-setuid 475s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 475s ok 33 /utils/int-limits 475s ok 34 /utils/clear-list 475s ok 35 /utils/clear-slist 475s ok 36 /utils/steal-handle-id 475s # Start of specialdir tests 475s ok 37 /utils/specialdir/desktop 475s # End of specialdir tests 475s # Start of clear-pointer tests 475s ok 38 /utils/clear-pointer/side-effects 475s # End of clear-pointer tests 475s # Start of aligned-mem tests 475s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 475s ok 39 /utils/aligned-mem/alignment 475s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 475s ok 40 /utils/aligned-mem/zeroed 475s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 475s ok 41 /utils/aligned-mem/free-sized 475s # Start of subprocess tests 475s # End of subprocess tests 475s # End of aligned-mem tests 475s # End of utils tests 475s ok - glib/utils-c-99.test 475s # Running test: glib/tls-certificate.test 475s TAP version 14 475s # random seed: R02S3ede8ef20ed78d636b50b9f7ab515dce 475s 1..19 475s # Start of tls-certificate tests 475s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 475s ok 1 /tls-certificate/pem-parser 475s ok 2 /tls-certificate/pem-parser-handles-chain 475s ok 3 /tls-certificate/from_file 475s ok 4 /tls-certificate/from_files 475s ok 5 /tls-certificate/from_files_crlf 475s ok 6 /tls-certificate/from_files_pkcs8 475s ok 7 /tls-certificate/from_files_pkcs8enc 475s ok 8 /tls-certificate/list_from_file 475s ok 9 /tls-certificate/pkcs11-uri 475s ok 10 /tls-certificate/pkcs11-uri-unsupported 475s ok 11 /tls-certificate/from_pkcs12 475s ok 12 /tls-certificate/from_pkcs12_file 475s ok 13 /tls-certificate/not-valid-before 475s ok 14 /tls-certificate/not-valid-after 475s ok 15 /tls-certificate/subject-name 475s ok 16 /tls-certificate/issuer-name 475s ok 17 /tls-certificate/dns-names 475s ok 18 /tls-certificate/ip-addresses 475s ok 19 /tls-certificate/pem-parser-no-sentinel 475s # End of tls-certificate tests 475s ok - glib/tls-certificate.test 475s # Running test: glib/sequence.test 475s TAP version 14 475s # random seed: R02S9fd83b2ed4bec395e757093b2afb8600 475s 1..16 475s # Start of sequence tests 475s ok 1 /sequence/out-of-range-jump 475s ok 2 /sequence/iter-move 475s ok 3 /sequence/insert-sorted-non-pointer 475s ok 4 /sequence/stable-sort 475s ok 5 /sequence/is_empty 475s # Start of random tests 475s ok 6 /sequence/random/seed:825541564 476s ok 7 /sequence/random/seed:801678400 476s ok 8 /sequence/random/seed:1477639090 476s ok 9 /sequence/random/seed:3369132895 477s ok 10 /sequence/random/seed:1192944867 477s ok 11 /sequence/random/seed:770458294 478s ok 12 /sequence/random/seed:1099575817 478s ok 13 /sequence/random/seed:590523467 478s ok 14 /sequence/random/seed:3583571454 479s # Executing: glib/sequence.test 479s ok 15 /sequence/random/seed:579241222 479s ok 16 /sequence/random/seed:896761128 479s # End of random tests 479s # End of sequence tests 479s ok - glib/sequence.test 479s # Running test: glib/tls-bindings.test 479s TAP version 14 479s # random seed: R02Sf99865912a5010cacb65b502cea00c2f 479s 1..2 479s # Start of tls-connection tests 479s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 479s ok 1 /tls-connection/get-tls-channel-binding 479s ok 2 /tls-connection/get-dtls-channel-binding 479s # End of tls-connection tests 479s ok - glib/tls-bindings.test 479s # Running test: glib/properties-introspection.test 479s ok - glib/properties-introspection.test 479s # Running test: glib/utf8-performance.test 479s TAP version 14 479s # random seed: R02S6877a887e31583c296c5e548774415b2 479s 1..2 479s # Start of properties tests 479s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 479s ok 1 /properties/introspection 479s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 479s ok 2 /properties/collision 479s # End of properties tests 479s TAP version 14 479s # random seed: R02S1f5ff103822431931b06cfc7ef509d3a 479s 1..36 479s # Start of utf8 tests 479s # Start of perf tests 479s # Start of get_char tests 479s # max perf: 43.0 MB/s 479s ok 1 /utf8/perf/get_char/ascii 479s # max perf: inf MB/s 479s ok 2 /utf8/perf/get_char/latin1 479s # max perf: inf MB/s 479s ok 3 /utf8/perf/get_char/cyrillic 479s # max perf: inf MB/s 479s ok 4 /utf8/perf/get_char/han 479s # End of get_char tests 479s # Start of get_char-backwards tests 479s # max perf: inf MB/s 479s ok 5 /utf8/perf/get_char-backwards/ascii 479s # max perf: inf MB/s 479s ok 6 /utf8/perf/get_char-backwards/latin1 479s # max perf: 160.0 MB/s 479s ok 7 /utf8/perf/get_char-backwards/cyrillic 479s # max perf: inf MB/s 479s ok 8 /utf8/perf/get_char-backwards/han 479s # End of get_char-backwards tests 479s # Start of get_char_validated tests 479s # max perf: inf MB/s 479s ok 9 /utf8/perf/get_char_validated/ascii 479s # max perf: 67.0 MB/s 479s ok 10 /utf8/perf/get_char_validated/latin1 479s # max perf: 160.0 MB/s 479s ok 11 /utf8/perf/get_char_validated/cyrillic 479s # max perf: inf MB/s 479s ok 12 /utf8/perf/get_char_validated/han 479s # End of get_char_validated tests 479s # Start of utf8_to_ucs4 tests 479s # max perf: inf MB/s 479s ok 13 /utf8/perf/utf8_to_ucs4/ascii 479s # max perf: 67.0 MB/s 479s ok 14 /utf8/perf/utf8_to_ucs4/latin1 479s # max perf: 160.0 MB/s 479s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 479s # max perf: 156.0 MB/s 479s ok 16 /utf8/perf/utf8_to_ucs4/han 479s # End of utf8_to_ucs4 tests 479s # Start of utf8_to_ucs4-sized tests 479s # max perf: 43.0 MB/s 479s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 479s # max perf: 67.0 MB/s 479s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 479s # max perf: 160.0 MB/s 479s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 479s # max perf: inf MB/s 479s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 479s # End of utf8_to_ucs4-sized tests 479s # Start of utf8_to_ucs4_fast tests 479s # max perf: inf MB/s 479s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 479s # max perf: 67.0 MB/s 479s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 479s # max perf: inf MB/s 479s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 479s # max perf: 156.0 MB/s 479s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 479s # End of utf8_to_ucs4_fast tests 479s # Start of utf8_to_ucs4_fast-sized tests 479s # max perf: 43.0 MB/s 479s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 479s # max perf: inf MB/s 479s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 479s # max perf: 160.0 MB/s 479s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 479s # max perf: inf MB/s 479s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 479s # End of utf8_to_ucs4_fast-sized tests 479s # Start of utf8_validate tests 479s # max perf: inf MB/s 479s ok 29 /utf8/perf/utf8_validate/ascii 479s # max perf: 67.0 MB/s 479s ok 30 /utf8/perf/utf8_validate/latin1 479s # max perf: inf MB/s 479s ok 31 /utf8/perf/utf8_validate/cyrillic 479s # max perf: inf MB/s 479s ok 32 /utf8/perf/utf8_validate/han 479s # End of utf8_validate tests 479s # Start of utf8_validate-sized tests 479s # max perf: inf MB/s 479s ok 33 /utf8/perf/utf8_validate-sized/ascii 479s # max perf: 67.0 MB/s 479s ok 34 /utf8/perf/utf8_validate-sized/latin1 479s # max perf: inf MB/s 479s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 479s # max perf: 156.0 MB/s 479s ok 36 /utf8/perf/utf8_validate-sized/han 479s # End of utf8_validate-sized tests 479s # End of perf tests 479s # End of utf8 tests 479s TAP version 14 479s # random seed: R02S3d7a80c432d7b6bb5510daadf78ff767 479s 1..24 479s # Start of gdbus tests 479s # Start of subscribe tests 479s # Start of conn tests 479s ok - glib/utf8-performance.test 479s # Running test: glib/gdbus-subscribe.test 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/simple/.dirs/runtime 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 479s # Step 0: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 1: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 2: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 2 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 1 /gdbus/subscribe/conn/simple 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 479s # Step 0: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: service 2 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 3: emitting signal 479s # Sender: service 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 4: emitting signal 479s # Sender: service 2 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 1 479s # Signal received from service 2 :1.2 479s # Signal received from service 2 :1.2 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 2 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 3 479s # Signal received from service 2 :1.2 479s # Signal received from service 2 :1.2 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 479s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 479s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 479s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/match_twice/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 479s # Step 0: adding subscription 479s # Sender: service :1.1 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 1: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: (any) 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 2: adding subscription 479s # Sender: (any) 479s # Path: (any) 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 3: adding subscription 479s # Sender: service :1.1 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 4: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 3 /gdbus/subscribe/conn/match_twice 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 479s # Step 0: adding subscription 479s # Sender: service :1.1 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 3: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 3 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 479s # Step 0: adding subscription 479s # Sender: :0.this.had.better.not.exist 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /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 479s # Step 0: claiming bus name 479s # Name: org.gtk.Test.AlreadyOwned 479s # Owner: service 479s # Step 1: adding subscription 479s # Sender: org.gtk.Test.AlreadyOwned 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 2: adding subscription 479s # Sender: org.gtk.Test.OwnedLater 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 3: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 4: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 5: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 6: claiming bus name 479s # Name: org.gtk.Test.OwnedLater 479s # Owner: service 479s # Step 7: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 5 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 7 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 7 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 479s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 479s # Step 0: adding subscription 479s # Sender: org.freedesktop.DBus 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: NameOwnerChanged 479s # String argument 0: would I lie to you? 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: NameOwnerChanged 479s # Waiting for signal to reach message bus 479s # Step 3: claiming bus name 479s # Name: org.gtk.Test.OwnedLater 479s # Owner: service 479s # Signal received from message bus org.freedesktop.DBus 479s # Signal received from (unused) org.freedesktop.DBus via connection 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: NameOwnerChanged 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 479s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 479s # Step 0: claiming bus name 479s # Name: org.gtk.Test.AlreadyOwned 479s # Owner: service 479s # Step 1: adding subscription 479s # Sender: org.gtk.Test.AlreadyOwned 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Immediately unsubscribing 479s # Waiting for AddMatch to be processed 479s # Step 2: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 479s # End of conn tests 479s # Start of proxy tests 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/simple/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 479s # Step 0: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 1: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Cannot subscribe via proxy: no bus name 479s # Waiting for AddMatch to be processed 479s # Step 2: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 9 /gdbus/subscribe/proxy/simple 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 479s # Step 0: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Cannot subscribe via proxy: no bus name 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: service 2 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 3: emitting signal 479s # Sender: service 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 4: emitting signal 479s # Sender: service 2 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 479s # Step 0: adding subscription 479s # Sender: service :1.1 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 1: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: (any) 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Cannot subscribe via proxy: no bus name 479s # Waiting for AddMatch to be processed 479s # Step 2: adding subscription 479s # Sender: (any) 479s # Path: (any) 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Cannot subscribe via proxy: no bus name 479s # Waiting for AddMatch to be processed 479s # Step 3: adding subscription 479s # Sender: service :1.1 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 4: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 11 /gdbus/subscribe/proxy/match_twice 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 479s # Step 0: adding subscription 479s # Sender: service :1.1 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 3: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 3 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 479s # Step 0: adding subscription 479s # Sender: :0.this.had.better.not.exist 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /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 479s # Step 0: claiming bus name 479s # Name: org.gtk.Test.AlreadyOwned 479s # Owner: service 479s # Step 1: adding subscription 479s # Sender: org.gtk.Test.AlreadyOwned 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 2: adding subscription 479s # Sender: org.gtk.Test.OwnedLater 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 3: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 4: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 5: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 6: claiming bus name 479s # Name: org.gtk.Test.OwnedLater 479s # Owner: service 479s # Step 7: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 5 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 7 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 7 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 479s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 479s # Step 0: adding subscription 479s # Sender: org.freedesktop.DBus 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: attacker 479s # Destination: (broadcast) 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: NameOwnerChanged 479s # String argument 0: would I lie to you? 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: attacker 479s # Destination: subscriber :1.0 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: NameOwnerChanged 479s # Waiting for signal to reach message bus 479s # Step 3: claiming bus name 479s # Name: org.gtk.Test.OwnedLater 479s # Owner: service 479s # Signal received from message bus org.freedesktop.DBus 479s # Signal received from (unused) org.freedesktop.DBus via proxy 479s # Path: /org/freedesktop/DBus 479s # Interface: org.freedesktop.DBus 479s # Member: NameOwnerChanged 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 479s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 479s # Step 0: claiming bus name 479s # Name: org.gtk.Test.AlreadyOwned 479s # Owner: service 479s # Step 1: adding subscription 479s # Sender: org.gtk.Test.AlreadyOwned 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via proxy 479s # Waiting for AddMatch to be processed 479s # Step 2: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via proxy 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 2 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 479s # End of proxy tests 479s # Start of parallel tests 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/simple/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 479s # Step 0: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 1: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Cannot subscribe via proxy: no bus name 479s # Waiting for AddMatch to be processed 479s # Step 2: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 2 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 479s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 479s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 479s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 479s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s ok 17 /gdbus/subscribe/parallel/simple 479s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 479s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 479s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 479s # subscriber is :1.0 479s # service is :1.1 479s # service 2 is :1.2 479s # attacker is :1.3 479s # Waiting for AddMatch to be processed 479s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 479s # Step 0: adding subscription 479s # Sender: (any) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: (any) 479s # String argument 0: (any) 479s # Flags: 0 479s # Subscribing via connection 479s # Cannot subscribe via proxy: no bus name 479s # Waiting for AddMatch to be processed 479s # Step 1: emitting signal 479s # Sender: service 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 2: emitting signal 479s # Sender: service 2 479s # Destination: (broadcast) 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 3: emitting signal 479s # Sender: service 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Step 4: emitting signal 479s # Sender: service 2 479s # Destination: subscriber :1.0 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Waiting for signal to reach message bus 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 1 479s # Signal received from service 2 :1.2 479s # Signal received from service 2 :1.2 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 2 479s # Signal received from service :1.1 479s # Signal received from service :1.1 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 3 479s # Signal received from service 2 :1.2 479s # Signal received from service 2 :1.2 via connection 479s # Path: /org/gtk/GDBus/ExampleInterface 479s # Interface: org.gtk.GDBus.ExampleInterface 479s # Member: Foo 479s # Argument 0: (not a string) 479s # Sent in step: 4 479s # Received Finished signal from subscriber :1.0 479s # Received Finished signal from service :1.1 479s # Received Finished signal from service 2 :1.2 479s # Received Finished signal from attacker :1.3 480s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 480s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 480s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 480s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 480s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # subscriber is :1.0 480s # service is :1.1 480s # service 2 is :1.2 480s # attacker is :1.3 480s # Waiting for AddMatch to be processed 480s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 480s # Step 0: adding subscription 480s # Sender: service :1.1 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 1: adding subscription 480s # Sender: (any) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: (any) 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Cannot subscribe via proxy: no bus name 480s # Waiting for AddMatch to be processed 480s # Step 2: adding subscription 480s # Sender: (any) 480s # Path: (any) 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Cannot subscribe via proxy: no bus name 480s # Waiting for AddMatch to be processed 480s # Step 3: adding subscription 480s # Sender: service :1.1 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 4: emitting signal 480s # Sender: service 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 4 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 4 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 4 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 4 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 4 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 4 480s # Received Finished signal from subscriber :1.0 480s # Received Finished signal from service :1.1 480s # Received Finished signal from service 2 :1.2 480s # Received Finished signal from attacker :1.3 480s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 480s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 19 /gdbus/subscribe/parallel/match_twice 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # subscriber is :1.0 480s # service is :1.1 480s # service 2 is :1.2 480s # attacker is :1.3 480s # Waiting for AddMatch to be processed 480s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 480s # Step 0: adding subscription 480s # Sender: service :1.1 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 1: emitting signal 480s # Sender: attacker 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Step 2: emitting signal 480s # Sender: attacker 480s # Destination: subscriber :1.0 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Step 3: emitting signal 480s # Sender: service 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 3 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 3 480s # Received Finished signal from subscriber :1.0 480s # Received Finished signal from service :1.1 480s # Received Finished signal from service 2 :1.2 480s # Received Finished signal from attacker :1.3 480s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 480s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # subscriber is :1.0 480s # service is :1.1 480s # service 2 is :1.2 480s # attacker is :1.3 480s # Waiting for AddMatch to be processed 480s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 480s # Step 0: adding subscription 480s # Sender: :0.this.had.better.not.exist 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 1: emitting signal 480s # Sender: attacker 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Step 2: emitting signal 480s # Sender: attacker 480s # Destination: subscriber :1.0 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Received Finished signal from subscriber :1.0 480s # Received Finished signal from service :1.1 480s # Received Finished signal from service 2 :1.2 480s # Received Finished signal from attacker :1.3 480s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # subscriber is :1.0 480s # service is :1.1 480s # service 2 is :1.2 480s # attacker is :1.3 480s # Waiting for AddMatch to be processed 480s # /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 480s # Step 0: claiming bus name 480s # Name: org.gtk.Test.AlreadyOwned 480s # Owner: service 480s # Step 1: adding subscription 480s # Sender: org.gtk.Test.AlreadyOwned 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 2: adding subscription 480s # Sender: org.gtk.Test.OwnedLater 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 3: emitting signal 480s # Sender: attacker 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Step 4: emitting signal 480s # Sender: attacker 480s # Destination: subscriber :1.0 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Step 5: emitting signal 480s # Sender: service 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Step 6: claiming bus name 480s # Name: org.gtk.Test.OwnedLater 480s # Owner: service 480s # Step 7: emitting signal 480s # Sender: service 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 5 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 5 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 7 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 7 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via connection 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 7 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 7 480s # Received Finished signal from subscriber :1.0 480s # Received Finished signal from service :1.1 480s # Received Finished signal from service 2 :1.2 480s # Received Finished signal from attacker :1.3 480s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 480s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 480s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 480s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 480s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 480s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # subscriber is :1.0 480s # service is :1.1 480s # service 2 is :1.2 480s # attacker is :1.3 480s # Waiting for AddMatch to be processed 480s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 480s # Step 0: adding subscription 480s # Sender: org.freedesktop.DBus 480s # Path: /org/freedesktop/DBus 480s # Interface: org.freedesktop.DBus 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 1: emitting signal 480s # Sender: attacker 480s # Destination: (broadcast) 480s # Path: /org/freedesktop/DBus 480s # Interface: org.freedesktop.DBus 480s # Member: NameOwnerChanged 480s # String argument 0: would I lie to you? 480s # Waiting for signal to reach message bus 480s # Step 2: emitting signal 480s # Sender: attacker 480s # Destination: subscriber :1.0 480s # Path: /org/freedesktop/DBus 480s # Interface: org.freedesktop.DBus 480s # Member: NameOwnerChanged 480s # Waiting for signal to reach message bus 480s # Step 3: claiming bus name 480s # Name: org.gtk.Test.OwnedLater 480s # Owner: service 480s # Signal received from message bus org.freedesktop.DBus 480s # Signal received from (unused) org.freedesktop.DBus via connection 480s # Path: /org/freedesktop/DBus 480s # Interface: org.freedesktop.DBus 480s # Member: NameOwnerChanged 480s # Signal received from message bus org.freedesktop.DBus 480s # Signal received from (unused) org.freedesktop.DBus via proxy 480s # Path: /org/freedesktop/DBus 480s # Interface: org.freedesktop.DBus 480s # Member: NameOwnerChanged 480s # Received Finished signal from subscriber :1.0 480s # Received Finished signal from service :1.1 480s # Received Finished signal from service 2 :1.2 480s # Received Finished signal from attacker :1.3 480s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 480s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 480s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_NKWKE3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # subscriber is :1.0 480s # service is :1.1 480s # service 2 is :1.2 480s # attacker is :1.3 480s # Waiting for AddMatch to be processed 480s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 480s # Step 0: claiming bus name 480s # Name: org.gtk.Test.AlreadyOwned 480s # Owner: service 480s # Step 1: adding subscription 480s # Sender: org.gtk.Test.AlreadyOwned 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: (any) 480s # String argument 0: (any) 480s # Flags: 0 480s # Subscribing via connection 480s # Immediately unsubscribing 480s # Subscribing via proxy 480s # Waiting for AddMatch to be processed 480s # Step 2: emitting signal 480s # Sender: service 480s # Destination: (broadcast) 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Waiting for signal to reach message bus 480s # Signal received from service :1.1 480s # Signal received from service :1.1 via proxy 480s # Path: /org/gtk/GDBus/ExampleInterface 480s # Interface: org.gtk.GDBus.ExampleInterface 480s # Member: Foo 480s # Argument 0: (not a string) 480s # Sent in step: 2 480s # Received Finished signal from subscriber :1.0 480s # Received Finished signal from service :1.1 480s # Received Finished signal from service 2 :1.2 480s # Received Finished signal from attacker :1.3 480s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 480s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 480s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 480s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok - glib/gdbus-subscribe.test 480s # Running test: glib/bitlock.test 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 480s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 480s # End of parallel tests 480s # End of subscribe tests 480s # End of gdbus tests 480s TAP version 14 480s # random seed: R02Sdd8c0293945cd1de08c92d770ba6a3e5 480s 1..2 480s # Start of bitlock tests 480s # Start of performance tests 480s # max perf: iterations per second 480s ok 1 /bitlock/performance/uncontended 480s ok - glib/bitlock.test 480s # Running test: glib/static-link.test 480s ok # SKIP - glib/static-link.test 480s # Running test: glib/collate.test 480s ok - glib/collate.test 480s # Running test: glib/utf8-private.test 480s ok - glib/utf8-private.test 480s ok 2 /bitlock/performance/parallel 480s # End of performance tests 480s # End of bitlock tests 480s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 480s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 480s and make sure you have glib build dependencies installed, including 480s meson. 480s TAP version 14 480s # random seed: R02Sad733d59cf2a5b0e3b2ba854a9766fab 480s 1..9 480s # Start of unicode tests 480s # Start of collate tests 480s ok 1 /unicode/collate/0 480s ok 2 /unicode/collate/1 480s ok 3 /unicode/collate/2 480s # End of collate tests 480s # Start of collate-key tests 480s ok 4 /unicode/collate-key/0 480s ok 5 /unicode/collate-key/1 480s ok 6 /unicode/collate-key/2 480s # End of collate-key tests 480s # Start of collate-filename tests 480s ok 7 /unicode/collate-filename/0 480s ok 8 /unicode/collate-filename/1 480s ok 9 /unicode/collate-filename/2 480s # End of collate-filename tests 480s # End of unicode tests 480s TAP version 14 480s # random seed: R02S020cc570ad65f87c4183ea46c50d3a71 480s 1..2 480s # Start of utf8 tests 480s ok 1 /utf8/utf8-to-utf16-make-valid 480s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 480s # End of utf8 tests 480s # Running test: glib/unicode-encoding.test 480s ok - glib/unicode-encoding.test 480s # Running test: glib/memory-output-stream.test 480s TAP version 14 480s # random seed: R02S4f0979c826f0a451856aae2a23f240f2 480s 1..1 480s # Start of unicode tests 480s ok 1 /unicode/encoding 480s # End of unicode tests 480s TAP version 14 480s # random seed: R02S602a6fe21df421a696905eab83669f27 480s 1..10 480s # Start of memory-output-stream tests 480s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 480s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 480s ok - glib/memory-output-stream.test 480s # Running test: glib/gdbus-connection-flush.test 480s ok 1 /memory-output-stream/truncate 480s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 480s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 480s ok 2 /memory-output-stream/get-data-size 480s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 480s ok 3 /memory-output-stream/properties 480s ok 4 /memory-output-stream/write-bytes 480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 480s ok 5 /memory-output-stream/write-null 480s ok 6 /memory-output-stream/writev 480s ok 7 /memory-output-stream/writev_nonblocking 480s ok 8 /memory-output-stream/steal_as_bytes 480s # Start of seek tests 480s ok 9 /memory-output-stream/seek/fixed 480s ok 10 /memory-output-stream/seek/resizable 480s # End of seek tests 480s # End of memory-output-stream tests 480s TAP version 14 480s # random seed: R02Sed718c6502a035fb242b57626248e3c2 480s 1..2 480s # Start of gdbus tests 480s # Start of connection tests 480s # Start of flush tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/busy/.dirs/runtime 480s ok 1 /gdbus/connection/flush/busy 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_TW1YE3/gdbus/connection/flush/idle/.dirs/runtime 480s ok 2 /gdbus/connection/flush/idle 480s # End of flush tests 480s # End of connection tests 480s # End of gdbus tests 480s TAP version 14 480s # random seed: R02S54e3910c29f816958113569be8c9078c 480s 1..7 480s # Start of tree tests 480s ok 1 /tree/search 480s ok 2 /tree/remove 480s ok 3 /tree/destroy 480s ok 4 /tree/traverse 480s ok 5 /tree/insert 480s ok 6 /tree/bounds 480s ok 7 /tree/remove-all 480s # End of tree tests 480s TAP version 14 480s # random seed: R02Seeef45c45e580949b5c8bc90d1a3d4ed 480s 1..2 480s # Start of GObject tests 480s ok 1 /GObject/threaded-dynamic-ref-unref-init 480s ok 2 /GObject/dynamic-interface-properties 480s # End of GObject tests 480s TAP version 14 480s # random seed: R02S2860e384d6481aba385281ef24b15e4d 480s 1..1 480s # Start of memory-monitor-psi tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_CH4YE3/memory-monitor-psi/receive-signal/.dirs/runtime 480s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 480s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 480s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 480s ok - glib/gdbus-connection-flush.test 480s # Running test: glib/tree.test 480s ok - glib/tree.test 480s # Running test: glib/dynamictests.test 480s ok - glib/dynamictests.test 480s # Running test: glib/memory-monitor-psi.test 480s ok - glib/memory-monitor-psi.test 480s # Running test: glib/portal-support-none.test 480s ok - glib/portal-support-none.test 480s # Running test: glib/gdbus-server-auth.test 480s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 480s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 480s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 480s ok 1 /memory-monitor-psi/receive-signal 480s # End of memory-monitor-psi tests 480s TAP version 14 480s # random seed: R02S28a7068eef858b65158db4fff69a8d8c 480s 1..1 480s # Start of portal-support tests 480s ok 1 /portal-support/none 480s # End of portal-support tests 480s TAP version 14 480s # random seed: R02S98c1d9b6455f18832ecf9b0063513ff8 480s 1..9 480s # Start of gdbus tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/.dirs/runtime 480s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-877YE3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 480s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-877YE3/dbus-hfqhfAGK 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4160 480s ok 1 /gdbus/server-auth 480s # Start of server-auth tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/abstract/.dirs/runtime 480s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-VSPZE3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 480s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-VSPZE3/dbus-C6UHsYEK 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 480s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 480s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4160 480s ok 2 /gdbus/server-auth/abstract 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/tcp/.dirs/runtime 480s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 480s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/.dirs/runtime 480s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-QCHZE3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 480s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-QCHZE3/dbus-kO5fJCM6 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4160 480s ok 4 /gdbus/server-auth/anonymous 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/.dirs/runtime 480s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-X43ZE3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 480s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-X43ZE3/dbus-O88fDhK6 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4160 480s ok 5 /gdbus/server-auth/external 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/.dirs/runtime 480s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-DTVZE3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 480s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 480s # Start of anonymous tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 480s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 480s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 480s # End of anonymous tests 480s # Start of external tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/external/require-same-user/.dirs/runtime 480s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-IZVZE3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 480s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_TX7YE3/gdbus-server-auth-IZVZE3/dbus-XN1FC1tu 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4160 480s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 480s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 480s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 480s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4160,uid=1000,gid=1000 480s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4160 480s ok 8 /gdbus/server-auth/external/require-same-user 480s # End of external tests 480s # Start of sha1 tests 480s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/home 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/cache 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/config 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/data 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/state 480s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_TX7YE3/gdbus/server-auth/sha1/tcp/.dirs/runtime 480s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 480s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 480s # End of sha1 tests 480s # End of server-auth tests 480s # End of gdbus tests 480s TAP version 13 480s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 480s 1..1 480s TAP version 14 480s # random seed: R02Se40d1b382db589972c497aff8c9cf70c 480s 1..6 480s # Start of thread tests 480s ok 1 /thread/mutex 480s ok - glib/gdbus-server-auth.test 480s # Running test: glib/memory-monitor-portal.test 480s ok - glib/memory-monitor-portal.test 480s # Running test: glib/thread-deprecated.test 480s ok 2 /thread/static-rec-mutex 484s # Executing: glib/thread-deprecated.test 485s ok 3 /thread/static-private 485s # slow test /thread/static-private executed in 4.40 secs 489s # Executing: glib/thread-deprecated.test 490s ok 4 /thread/static-rw-lock 490s # slow test /thread/static-rw-lock executed in 5.00 secs 490s ok 5 /thread/once 494s # Executing: glib/thread-deprecated.test 499s # Executing: glib/thread-deprecated.test 500s ok - glib/thread-deprecated.test 500s ok 6 /thread/rerun-all 500s # slow test /thread/rerun-all executed in 10.02 secs 500s # End of thread tests 500s # Running test: glib/union-info.test 500s TAP version 14 500s # random seed: R02S8904e2dd8ae48146a1be7e62698e3001 500s 1..2 500s # Start of union-info tests 500s ok - glib/union-info.test 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_I03TE3/union-info/basic/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_I03TE3/union-info/basic/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_I03TE3/union-info/basic/.dirs/runtime 500s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 500s # /union-info/basic summary: Test basic properties of GIUnionInfo 500s ok 1 /union-info/basic 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_I03TE3/union-info/methods/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_I03TE3/union-info/methods/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_I03TE3/union-info/methods/.dirs/runtime 500s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 500s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 500s ok 2 /union-info/methods 500s # End of union-info tests 500s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 500s TAP version 14 500s # random seed: R02S96a8f50814c6899f5599abed989bdcc9 500s 1..8 500s # Start of gdbus tests 500s # Start of codegen tests 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/annotations/.dirs/runtime 500s ok 1 /gdbus/codegen/annotations 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/interface_stability/.dirs/runtime 500s ok 2 /gdbus/codegen/interface_stability 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/object-manager/.dirs/runtime 500s ok 3 /gdbus/codegen/object-manager 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/property-naming/.dirs/runtime 500s ok 4 /gdbus/codegen/property-naming 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/autocleanups/.dirs/runtime 500s ok 5 /gdbus/codegen/autocleanups 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/config 500s ok - glib/gdbus-test-codegen-min-required-2-64.test 500s # Running test: glib/debugcontroller.test 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/deprecations/.dirs/runtime 500s ok 6 /gdbus/codegen/deprecations 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/standalone-interface-info/.dirs/runtime 500s ok 7 /gdbus/codegen/standalone-interface-info 500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/home 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/cache 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/system-config2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/config 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/system-data2 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/data 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/state 500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_V25TE3/gdbus/codegen/unix-fd-list/.dirs/runtime 500s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 500s ok 8 /gdbus/codegen/unix-fd-list 500s # End of codegen tests 500s # End of gdbus tests 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s TAP version 14 500s # random seed: R02Sae569542701a22c0fc1e9c0b983cc253 500s 1..3 500s # Start of debug-controller tests 500s # Start of dbus tests 500s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 500s # GLib-GIO-DEBUG: Debug output enabled 500s # GLib-GIO-DEBUG: Debug output disabled 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s ok 1 /debug-controller/dbus/basic 500s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 500s ok 2 /debug-controller/dbus/duplicate 500s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 500s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 500s # End of dbus tests 500s # End of debug-controller tests 500s TAP version 14 500s # random seed: R02S99a230be3427befc24eda01e68c640ab 500s 1..2 500s # Start of glib tests 500s # Start of 1bit-mutex tests 500s ok - glib/debugcontroller.test 500s # Running test: glib/1bit-mutex.test 503s ok 1 /glib/1bit-mutex/int 503s # slow test /glib/1bit-mutex/int executed in 3.50 secs 504s # Executing: glib/1bit-mutex.test 507s ok 2 /glib/1bit-mutex/pointer 507s # slow test /glib/1bit-mutex/pointer executed in 3.67 secs 507s # End of 1bit-mutex tests 507s # End of glib tests 507s ok - glib/1bit-mutex.test 507s # Running test: glib/autoptr-girepository.test 507s TAP version 14 507s # random seed: R02S0ad725c16f37559329e3f03de36c5772 507s 1..24 507s # Start of autoptr tests 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/repository/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 1 /autoptr/repository 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/typelib/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 2 /autoptr/typelib 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/base-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 3 /autoptr/base-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/arg-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 4 /autoptr/arg-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callable-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 5 /autoptr/callable-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/callback-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 6 /autoptr/callback-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/constant-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 7 /autoptr/constant-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/enum-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 8 /autoptr/enum-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/field-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 9 /autoptr/field-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/flags-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 10 /autoptr/flags-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/function-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 11 /autoptr/function-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/interface-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 12 /autoptr/interface-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/object-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 13 /autoptr/object-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/property-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 14 /autoptr/property-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/registered-type-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok - glib/autoptr-girepository.test 507s # Running test: glib/gio-tool.py.test 507s ok 15 /autoptr/registered-type-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/signal-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 16 /autoptr/signal-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/struct-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 17 /autoptr/struct-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/type-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 18 /autoptr/type-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/union-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 19 /autoptr/union-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/value-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 20 /autoptr/value-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/autoptr/vfunc-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 21 /autoptr/vfunc-info 507s # End of autoptr tests 507s # Start of auto tests 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/auto/arg-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 22 /auto/arg-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/auto/type-info/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 23 /auto/type-info 507s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/home 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/cache 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/system-config2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/config 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/system-data2 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/data 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/state 507s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_ATWNE3/auto/function-invoker/.dirs/runtime 507s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 507s ok 24 /auto/function-invoker 507s # End of auto tests 507s TAP version 13 507s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmp8dcn6uph 507s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp8dcn6uph/folder/desktop.entry'] 507s # Working Directory: /tmp/tmp8dcn6uph/folder 507s # Return code: 0 507s # Output: 507s # /tmp/tmp8dcn6uph/folder/desktop.entry 507s # Error: 507s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmpjxuu9jpj 507s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpjxuu9jpj/folder/desktop.entry'] 507s # Working Directory: /tmp/tmpjxuu9jpj 507s # Return code: 0 507s # Output: 507s # /tmp/tmpjxuu9jpj/folder/desktop.entry 507s # Error: 507s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmp3pay_m_q 507s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp3pay_m_q/folder/desktop.entry'] 507s # Working Directory: /tmp/tmp3pay_m_q/sibling 507s # Return code: 0 507s # Output: 507s # /tmp/tmp3pay_m_q/folder/desktop.entry 507s # Error: 507s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmpxzzzim5f 507s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 507s # Working Directory: /tmp/tmpxzzzim5f/folder 507s # Return code: 0 507s # Output: 507s # /tmp/tmpxzzzim5f/folder/desktop.entry 507s # Error: 507s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmp713_qohi 507s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 507s # Working Directory: /tmp/tmp713_qohi 507s # Return code: 0 507s # Output: 507s # /tmp/tmp713_qohi/folder/desktop.entry 507s # Error: 507s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmpma9hpw8f 507s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 507s # Working Directory: /tmp/tmpma9hpw8f/sibling 507s # Return code: 0 507s # Output: 507s # /tmp/tmpma9hpw8f/folder/desktop.entry 507s # Error: 507s ok 7 __main__.TestGioTool.test_help 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmp8isrvtnu 507s # Running: ['/usr/bin/gio', '--help'] 507s # Return code: 0 507s # Output: 507s # Usage: 507s # gio COMMAND [ARGS…] 507s # 507s # Commands: 507s # help Print help 507s # version Print version 507s # cat Concatenate files to standard output 507s # copy Copy one or more files 507s # info Show information about locations 507s # launch Launch an application from a desktop file 507s # list List the contents of locations 507s # mime Get or set the handler for a mimetype 507s # mkdir Create directories 507s # monitor Monitor files and directories for changes 507s # mount Mount or unmount the locations 507s # move Move one or more files 507s # open Open files with the default application 507s # rename Rename a file 507s # remove Delete one or more files 507s # save Read from standard input and save 507s # set Set a file attribute 507s # trash Move files or directories to the trash 507s # tree Lists the contents of locations in a tree 507s # 507s # Use “gio help COMMAND” to get detailed help. 507s # Error: 507s # 507s # Running: ['/usr/bin/gio', 'help'] 507s # Return code: 0 507s # Output: 507s # Usage: 507s # gio COMMAND [ARGS…] 507s # 507s # Commands: 507s # help Print help 507s # version Print version 507s # cat Concatenate files to standard output 507s # copy Copy one or more files 507s # info Show information about locations 507s # launch Launch an application from a desktop file 507s # list List the contents of locations 507s # mime Get or set the handler for a mimetype 507s # mkdir Create directories 507s # monitor Monitor files and directories for changes 507s # mount Mount or unmount the locations 507s # move Move one or more files 507s # open Open files with the default application 507s # rename Rename a file 507s # remove Delete one or more files 507s # save Read from standard input and save 507s # set Set a file attribute 507s # trash Move files or directories to the trash 507s # tree Lists the contents of locations in a tree 507s # 507s # Use “gio help COMMAND” to get detailed help. 507s # Error: 507s ok 8 __main__.TestGioTool.test_info_non_default_attributes 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmpl0v7g3pt 507s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpl0v7g3pt/tmp0irl0zuv'] 507s # Return code: 0 507s # Output: 507s # uri: file:///tmp/tmpl0v7g3pt/tmp0irl0zuv 507s # local path: /tmp/tmpl0v7g3pt/tmp0irl0zuv 507s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 507s # attributes: 507s # standard::content-type: application/x-zerosize 507s # Error: 507s ok 9 __main__.TestGioTool.test_no_args 507s # gio: /usr/bin/gio 507s # tmpdir: /tmp/tmp_x7rx8kw 507s # Running: ['/usr/bin/gio'] 507s # Return code: 1 507s # Output: 507s # 507s # Error: 507s # Usage: 507s # gio COMMAND [ARGS…] 507s # 507s # Commands: 507s # help Print help 507s # version Print version 507s # cat Concatenate files to standard output 507s # copy Copy one or more files 507s # info Show information about locations 507s # launch Launch an application from a desktop file 507s # list List the contents of locations 507s # mime Get or set the handler for a mimetype 507s # mkdir Create directories 507s # monitor Monitor files and directories for changes 507s # mount Mount or unmount the locations 507s # move Move one or more files 507s # open Open files with the default application 507s # rename Rename a file 507s # remove Delete one or more files 507s # save Read from standard input and save 507s # set Set a file attribute 507s # trash Move files or directories to the trash 507s # tree Lists the contents of locations in a tree 507s # 507s # Use “gio help COMMAND” to get detailed help. 507s 1..9 507s ok - glib/gio-tool.py.test 507s # Running test: glib/unix-streams.test 507s TAP version 14 507s # random seed: R02S02cf222ebc7c35eb7e13d64e5540e7f8 507s 1..9 507s # Start of unix-streams tests 507s ok 1 /unix-streams/basic 507s ok 2 /unix-streams/pipe-io-test 507s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 508s ok 3 /unix-streams/nonblocking-io-test 508s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 508s ok 4 /unix-streams/read_write 508s ok 5 /unix-streams/read_writev 508s ok 6 /unix-streams/write-wouldblock 508s ok 7 /unix-streams/writev-wouldblock 508s ok 8 /unix-streams/write-async-wouldblock 508s ok 9 /unix-streams/writev-async-wouldblock 508s # End of unix-streams tests 508s ok - glib/unix-streams.test 508s # Running test: glib/gdbus-test-codegen-old.test 508s TAP version 14 508s # random seed: R02S741d01fc4127e9e6f96f6abed13c8221 508s 1..8 508s # Start of gdbus tests 508s # Start of codegen tests 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/annotations/.dirs/runtime 508s ok 1 /gdbus/codegen/annotations 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/interface_stability/.dirs/runtime 508s ok 2 /gdbus/codegen/interface_stability 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/object-manager/.dirs/runtime 508s ok 3 /gdbus/codegen/object-manager 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/property-naming/.dirs/runtime 508s ok 4 /gdbus/codegen/property-naming 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/autocleanups/.dirs/runtime 508s ok 5 /gdbus/codegen/autocleanups 508s ok - glib/gdbus-test-codegen-old.test 508s # Running test: glib/macros.test 508s ok - glib/macros.test 508s # Running test: glib/atomic-c-89.test 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/deprecations/.dirs/runtime 508s ok 6 /gdbus/codegen/deprecations 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/standalone-interface-info/.dirs/runtime 508s ok 7 /gdbus/codegen/standalone-interface-info 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_767QE3/gdbus/codegen/unix-fd-list/.dirs/runtime 508s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 508s ok 8 /gdbus/codegen/unix-fd-list 508s # End of codegen tests 508s # End of gdbus tests 508s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 508s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 508s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 508s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 508s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 508s TAP version 14 508s # random seed: R02S1de36a437c5fbcad9656b25f7333e68a 508s 1..3 508s # Start of alignof tests 508s ok 1 /alignof/fallback 508s # End of alignof tests 508s # Start of assert tests 508s ok 2 /assert/static 508s # End of assert tests 508s # Start of struct tests 508s ok 3 /struct/sizeof_member 508s # End of struct tests 508s TAP version 14 508s # random seed: R02Sa47eed27bc4c982f9192f8f2acdef082 508s 1..2 508s # Start of atomic tests 508s ok 1 /atomic/types 508s ok 2 /atomic/threaded 508s # End of atomic tests 508s ok - glib/atomic-c-89.test 508s # Running test: glib/macros-c-89.test 508s TAP version 14 508s # random seed: R02Sdcb376f531cb40dc64f6b9422c8eca91 508s 1..4 508s # Start of C tests 508s ok 1 /C/standard-89 508s # End of C tests 508s # Start of alignof tests 508s ok 2 /alignof/fallback 508s # End of alignof tests 508s # Start of assert tests 508s ok 3 /assert/static 508s # End of assert tests 508s # Start of struct tests 508s ok 4 /struct/sizeof_member 508s # End of struct tests 508s ok - glib/macros-c-89.test 508s # Running test: glib/portal-support-flatpak-none.test 508s ok - glib/portal-support-flatpak-none.test 508s TAP version 14 508s # random seed: R02Sba53967781146a4b9002da25b05a6f25 508s 1..1 508s # Start of portal-support tests 508s # Start of flatpak tests 508s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/home 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/cache 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/system-config2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/config 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/system-data2 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/data 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/state 508s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/runtime 508s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_3UTHE3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 508s ok 1 /portal-support/flatpak/none 508s # End of flatpak tests 508s # End of portal-support tests 508s # Running test: glib/converter-stream.test 508s TAP version 14 508s # random seed: R02S0977774f4f781cc194529c73318007ba 508s 1..17 508s # Start of converter tests 508s ok 1 /converter/basics 508s # End of converter tests 508s # Start of converter-input-stream tests 508s ok 2 /converter-input-stream/expander 508s ok 3 /converter-input-stream/compressor 508s # Start of truncation tests 508s ok 4 /converter-input-stream/truncation/zlib 508s ok 5 /converter-input-stream/truncation/gzip 508s ok 6 /converter-input-stream/truncation/raw 508s # End of truncation tests 508s # Start of charset tests 508s ok 7 /converter-input-stream/charset/utf8->latin1 508s ok 8 /converter-input-stream/charset/latin1->utf8 508s ok 9 /converter-input-stream/charset/fallbacks 508s # End of charset tests 508s # End of converter-input-stream tests 508s # Start of converter-output-stream tests 508s # Start of roundtrip tests 508s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 508s ok 10 /converter-output-stream/roundtrip/zlib-0 508s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 508s ok 11 /converter-output-stream/roundtrip/zlib-9 508s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 508s ok 12 /converter-output-stream/roundtrip/gzip-0 508s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 509s ok 13 /converter-output-stream/roundtrip/gzip-9 509s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 509s ok 14 /converter-output-stream/roundtrip/raw-0 509s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 509s ok 15 /converter-output-stream/roundtrip/raw-9 509s # End of roundtrip tests 509s # End of converter-output-stream tests 509s # Start of converter-stream tests 509s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 509s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5c6f61745ad0 and GSocketClientAsyncConnectData 0x5c6f6173e230 509s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 509s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 509s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5c6f61384bc0 for GSocketClientAsyncConnectData 0x5c6f6173e230 509s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 509s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 509s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 509s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 509s ok 16 /converter-stream/pollable 509s ok 17 /converter-stream/leftover 509s # End of converter-stream tests 509s ok - glib/converter-stream.test 509s # Running test: glib/converter.test 509s TAP version 14 509s # random seed: R02S9f4e3a176b274e6b8a2ee07be519a2df 509s 1..3 509s # Start of converter tests 509s ok 1 /converter/bytes 509s ok 2 /converter/extra-bytes-at-end 509s ok 3 /converter/gzip-os-property 509s # End of converter tests 509s ok - glib/converter.test 509s # Running test: glib/override.test 509s TAP version 14 509s # random seed: R02S59e678fb1f1e41371504d6574cae4e16 509s 1..1 509s # Start of gobject tests 509s # *** emitting foo on a TestA instance 509s # Expecting: TestA::foo,TestI::foo 509s # Got: TestA::foo,TestI::foo 509s # *** emitting bar on a TestA instance 509s # Expecting: TestA::bar 509s # Got: TestA::bar 509s # *** emitting baz on a TestA instance 509s # Expecting: TestA::baz 509s # Got: TestA::baz 509s # *** emitting foo on a TestB instance 509s # Expecting: TestB::foo,TestA::foo,TestI::foo 509s # Got: TestB::foo,TestA::foo,TestI::foo 509s # *** emitting bar on a TestB instance 509s # Expecting: TestB::bar,TestA::bar 509s # Got: TestB::bar,TestA::bar 509s # *** emitting baz on a TestB instance 509s # Expecting: TestB::baz,TestA::baz 509s # Got: TestB::baz,TestA::baz 509s # *** emitting foo on a TestC instance 509s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 509s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 509s # *** emitting bar on a TestC instance 509s # Expecting: TestC::bar,TestB::bar,TestA::bar 509s # Got: TestC::bar,TestB::bar,TestA::bar 509s # *** emitting baz on a TestC instance 509s # Expecting: TestC::baz,TestB::baz,TestA::baz 509s # Got: TestC::baz,TestB::baz,TestA::baz 509s ok 1 /gobject/override 509s # End of gobject tests 509s ok - glib/override.test 509s # Running test: glib/atomic-c-17.test 509s TAP version 14 509s # random seed: R02S9f72711274c38f907cb9f2c704d46f59 509s 1..2 509s # Start of atomic tests 509s ok 1 /atomic/types 509s ok 2 /atomic/threaded 509s # End of atomic tests 509s ok - glib/atomic-c-17.test 509s # Running test: glib/deprecated-properties.test 509s TAP version 14 509s # random seed: R02Sa6ea4695c74c5e4f97cde6f4444e152e 509s 1..3 509s # Start of deprecated-properties tests 509s ok 1 /deprecated-properties/construct 509s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 509s ok 2 /deprecated-properties/default-construct 509s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 509s ok 3 /deprecated-properties/set 509s # End of deprecated-properties tests 509s ok - glib/deprecated-properties.test 509s # Running test: glib/signal-handler.test 509s ok - glib/signal-handler.test 509s TAP version 14 509s # random seed: R02Sf89137d28f29bee9449a347162f23cd6 509s 1..7 509s # Start of signal tests 509s # Start of handler tests 509s # min perf: connected 1 handlers in 0.000 seconds 509s ok 1 /signal/handler/connect-many 509s # min perf: disconnected 1 handlers in 0.000 seconds 509s ok 2 /signal/handler/disconnect-many-ordered 509s # min perf: disconnected 1 handlers in 0.000 seconds 509s ok 3 /signal/handler/disconnect-many-inverse 509s # min perf: disconnected 1 handlers in 0.000 seconds 509s ok 4 /signal/handler/disconnect-many-random 509s # min perf: disconnected 1 handlers in 0.000 seconds 509s ok 5 /signal/handler/disconnect-2-signals 509s # min perf: disconnected 1 handlers in 0.000 seconds 509s ok 6 /signal/handler/disconnect-2-objects 509s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 509s ok 7 /signal/handler/block-many 509s # End of handler tests 509s # End of signal tests 509s # Running test: glib/fdo-notification-backend.test 509s # Executing: glib/fdo-notification-backend.test 509s TAP version 14 509s # random seed: R02S1389b8e943b4c36fa09ffa50b2706218 509s 1..2 509s # Start of fdo-notification-backend tests 509s # Test constructing a GFdoNotificationBackend 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s ok 1 /fdo-notification-backend/construction 509s # Start of dbus tests 509s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 509s ok 2 /fdo-notification-backend/dbus/activate-action 509s # End of dbus tests 509s # End of fdo-notification-backend tests 509s TAP version 14 509s # random seed: R02S650c5956c11e51e2418a1c3b5928dd5e 509s 1..4 509s # Start of type tests 509s # Start of flags tests 509s ok 1 /type/flags/interface 509s ok 2 /type/flags/final 509s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 509s ok 3 /type/flags/deprecated 509s # Start of final tests 509s ok 4 /type/flags/final/instance-check 509s # End of final tests 509s # End of flags tests 509s # End of type tests 509s ok - glib/fdo-notification-backend.test 509s # Running test: glib/type-flags.test 509s ok - glib/type-flags.test 509s # Running test: glib/performance.test 514s # Executing: glib/performance.test 515s simple-construction: Millions of constructed objects per second: 42.620 517s simple-construction1: Millions of constructed objects per second: 173.921 519s # Executing: glib/performance.test 519s complex-construction: Millions of constructed objects per second: 13.331 524s complex-construction1: Millions of constructed objects per second: 25.084 524s # Executing: glib/performance.test 528s complex-construction2: Millions of constructed objects per second: 29.314 529s # Executing: glib/performance.test 529s finalization: Millions of finalized objects per second: 9.555 531s type-check: Million type checks per second: 202.30 532s emit-unhandled: Emissions per second: 9675919 533s emit-unhandled-empty: Emissions per second: 74421447 534s # Executing: glib/performance.test 534s emit-unhandled-generic: Emissions per second: 13330237 535s emit-unhandled-generic-empty: Emissions per second: 72949606 536s emit-unhandled-args: Emissions per second: 8114560 538s emit-handled: Emissions per second: 5907702 539s emit-handled-empty: Emissions per second: 6125754 539s # Executing: glib/performance.test 540s emit-handled-generic: Emissions per second: 6029655 541s emit-handled-generic-empty: Emissions per second: 11325779 542s emit-handled-args: Emissions per second: 5388030 543s notify-unhandled: Notify (unhandled) per second: 53670713 544s # Executing: glib/performance.test 544s notify-by-pspec-unhandled: Notify (unhandled) per second: 147843100 546s notify-handled: Notify per second: 3914096 547s notify-by-pspec-handled: Notify per second: 4095155 548s property-set: Property set per second: 31157564 549s # Executing: glib/performance.test 549s property-set-signaled: Property set per second: 8271746 550s property-get: Property get per second: 27590110 551s refcount: Million refs+unref per second: 71.54 552s refcount-1: Million refs+unref per second: 222.43 554s refcount-toggle: Million refs+unref per second: 130.20 554s ok - glib/performance.test 554s # Running test: glib/642026.test 554s TAP version 14 554s # random seed: R02S3ee1e6a0c529c373905ac6b4efbb9d37 554s 1..1 554s # Start of glib tests 554s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 554s ok 1 /glib/642026 554s # End of glib tests 554s ok - glib/642026.test 554s # Running test: glib/accumulator.test 554s ok - glib/accumulator.test 554s TAP version 14 554s # random seed: R02Sb6fc0536d2326cec1560d2849d53e01c 554s 1..1 554s # Start of gobject tests 554s ok 1 /gobject/accumulator 554s # End of gobject tests 554s # Running test: glib/spawn-path-search.test 554s TAP version 14 554s # random seed: R02S44a5896a435b891cffddc760648eff6e 554s 1..7 554s # Start of spawn tests 554s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 554s # 554s # this is spawn-test-helper from glib/tests 554s # 554s ok 1 /spawn/do-not-search 554s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 554s # 554s # this is spawn-test-helper from path-test-subdir 554s # 554s ok 2 /spawn/search-path 554s # /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. 554s # 554s # this is spawn-test-helper from path-test-subdir 554s # 554s ok 3 /spawn/search-path-from-envp 554s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 554s # 554s # this is spawn-test-helper from path-test-subdir 554s # 554s ok 4 /spawn/search-path-ambiguous 554s # 554s # this is spawn-test-helper from path-test-subdir 554s # 554s ok 5 /spawn/search-path-heap-allocation 554s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 554s # 554s # this is spawn-test-helper from glib/tests 554s # 554s ok 6 /spawn/search-path-fallback-in-environ 554s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 554s # 554s # this is spawn-test-helper from glib/tests 554s # 554s ok 7 /spawn/search-path-fallback-in-envp 554s # End of spawn tests 554s ok - glib/spawn-path-search.test 554s # Running test: glib/value.test 554s TAP version 14 554s ok - glib/value.test 554s # random seed: R02Sa681d09b35724b2add9feb59ca0a6003 554s 1..9 554s # Start of value tests 554s ok 1 /value/basic 554s ok 2 /value/collection 554s ok 3 /value/copying 554s ok 4 /value/enum-transformation 554s ok 5 /value/gtype 554s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 554s ok 6 /value/string 554s # Next: GObject object in GValue of GObject to GValue of GObject 554s # Next: GObject object in GValue of GObject to GValue of TestInterface 554s # Next: GObject object in GValue of GObject to GValue of TestObjectA 554s # Next: GObject object in GValue of GObject to GValue of TestObjectB 554s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 554s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 554s # Next: TestObjectA object in GValue of GObject to GValue of GObject 554s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 554s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 554s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 554s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 554s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 554s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 554s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 554s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 554s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 554s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 554s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 554s # Next: TestObjectB object in GValue of GObject to GValue of GObject 554s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 554s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 554s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 554s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 554s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 554s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 554s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 554s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 554s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 554s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 554s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 554s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 554s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 554s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 554s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 554s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 554s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 554s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 554s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 554s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 554s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 554s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 554s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 554s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 554s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 554s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 554s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 554s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 554s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 554s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 554s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 554s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 554s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 554s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 554s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 554s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 554s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 554s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 554s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 554s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 554s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 554s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 554s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 554s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 554s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 554s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 554s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 554s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 554s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 554s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 554s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 554s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 554s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 554s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 554s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 554s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 554s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 554s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 554s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 554s ok 7 /value/transform-object 554s # Start of array tests 554s ok 8 /value/array/basic 554s ok 9 /value/array/sort-with-data 554s # End of array tests 554s # End of value tests 554s # Running test: glib/custom-dispatch.test 554s ok - glib/custom-dispatch.test 554s # Running test: glib/cxx-03.test 554s ok - glib/cxx-03.test 554s # Running test: glib/overflow.test 554s ok - glib/overflow.test 554s # Running test: glib/types.test 554s ok - glib/types.test 554s # Running test: glib/resolver-parsing.test 554s TAP version 14 554s # random seed: R02Sa3d7301d43ec3672242946b6593110ae 554s 1..2 554s # Start of properties tests 554s # Start of custom-dispatch tests 554s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 554s ok 1 /properties/custom-dispatch/init 554s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 554s ok 2 /properties/custom-dispatch/set 554s # End of custom-dispatch tests 554s # End of properties tests 554s TAP version 14 554s # random seed: R02S18b9d0332640fcf735f575774c60790e 554s 1..2 554s # Start of gtask tests 554s # 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. 554s ok 1 /gtask/name 554s # Start of name tests 554s # 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. 554s ok 2 /gtask/name/macro-wrapper 554s # End of name tests 554s # End of gtask tests 554s TAP version 14 554s # random seed: R02Sfb58bc10a30c5779140cff8bae4dd1fc 554s 1..6 554s # Start of glib tests 554s # Start of checked-math tests 554s ok 1 /glib/checked-math/guint-add 554s ok 2 /glib/checked-math/guint-mul 554s ok 3 /glib/checked-math/guint64-add 554s ok 4 /glib/checked-math/guint64-mul 554s ok 5 /glib/checked-math/gsize-add 554s ok 6 /glib/checked-math/gsize-mul 554s # End of checked-math tests 554s # End of glib tests 554s TAP version 14 554s # random seed: R02S7ecba1c27ff05d50b40c9cec818bf146 554s 1..1 554s # Start of types tests 554s ok 1 /types/basic_types 554s # End of types tests 554s TAP version 14 554s # random seed: R02Scd18aba39084791d663c7c529b9a29d3 554s 1..21 554s # Start of gresolver tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/invalid-header/.dirs/runtime 554s ok 1 /gresolver/invalid-header 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/record-ownership/.dirs/runtime 554s ok 2 /gresolver/record-ownership 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/unknown-record-type/.dirs/runtime 554s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 554s ok 3 /gresolver/unknown-record-type 554s # Start of mx tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/valid/.dirs/runtime 554s ok 4 /gresolver/mx/valid 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/.dirs/runtime 554s ok 5 /gresolver/mx/invalid 554s # Start of invalid tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short/.dirs/runtime 554s ok 6 /gresolver/mx/invalid/too-short 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/mx/invalid/too-short2/.dirs/runtime 554s ok 7 /gresolver/mx/invalid/too-short2 554s # End of invalid tests 554s # End of mx tests 554s # Start of ns tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/valid/.dirs/runtime 554s ok 8 /gresolver/ns/valid 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/ns/invalid/.dirs/runtime 554s ok 9 /gresolver/ns/invalid 554s # End of ns tests 554s # Start of soa tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/valid/.dirs/runtime 554s ok 10 /gresolver/soa/valid 554s # Start of invalid tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/mname/.dirs/runtime 554s ok 11 /gresolver/soa/invalid/mname 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/rname/.dirs/runtime 554s ok 12 /gresolver/soa/invalid/rname 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/soa/invalid/too-short/.dirs/runtime 554s ok 13 /gresolver/soa/invalid/too-short 554s # End of invalid tests 554s # End of soa tests 554s # Start of srv tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/valid/.dirs/runtime 554s ok 14 /gresolver/srv/valid 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/.dirs/runtime 554s ok 15 /gresolver/srv/invalid 554s # Start of invalid tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short/.dirs/runtime 554s ok 16 /gresolver/srv/invalid/too-short 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/srv/invalid/too-short2/.dirs/runtime 554s ok 17 /gresolver/srv/invalid/too-short2 554s # End of invalid tests 554s # End of srv tests 554s # Start of txt tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/.dirs/runtime 554s ok 18 /gresolver/txt/valid 554s # Start of valid tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/valid/multiple-strings/.dirs/runtime 554s ok 19 /gresolver/txt/valid/multiple-strings 554s # End of valid tests 554s # Start of invalid tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/empty/.dirs/runtime 554s ok 20 /gresolver/txt/invalid/empty 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/home 554s ok - glib/resolver-parsing.test 554s # Running test: glib/fileutils.test 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_ZQ7UE3/gresolver/txt/invalid/overflow/.dirs/runtime 554s ok 21 /gresolver/txt/invalid/overflow 554s # End of invalid tests 554s # End of txt tests 554s # End of gresolver tests 554s TAP version 14 554s # random seed: R02S4de13158a1a5e40ca3528f4a395f6061 554s 1..27 554s # Start of fileutils tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/paths/.dirs/runtime 554s ok 1 /fileutils/paths 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/build-path/.dirs/runtime 554s ok 2 /fileutils/build-path 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/build-pathv/.dirs/runtime 554s ok 3 /fileutils/build-pathv 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/build-filename/.dirs/runtime 554s ok 4 /fileutils/build-filename 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/build-filenamev/.dirs/runtime 554s ok 5 /fileutils/build-filenamev 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents/.dirs/runtime 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Checking g_mkdir_with_parents() in subdir ./hum/ 554s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 554s ok 6 /fileutils/mkdir-with-parents 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/mkdir-with-parents-permission/.dirs/runtime 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s ok 7 /fileutils/mkdir-with-parents-permission 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/format-size-for-display/.dirs/runtime 554s ok 8 /fileutils/format-size-for-display 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/errors/.dirs/runtime 554s ok 9 /fileutils/errors 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/basename/.dirs/runtime 554s ok 10 /fileutils/basename 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/get-basename/.dirs/runtime 554s ok 11 /fileutils/get-basename 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/dirname/.dirs/runtime 554s ok 12 /fileutils/dirname 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/dir-make-tmp/.dirs/runtime 554s ok 13 /fileutils/dir-make-tmp 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/file-open-tmp/.dirs/runtime 554s ok 14 /fileutils/file-open-tmp 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/file-test/.dirs/runtime 554s ok 15 /fileutils/file-test 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/mkstemp/.dirs/runtime 554s ok 16 /fileutils/mkstemp 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/mkdtemp/.dirs/runtime 554s ok 17 /fileutils/mkdtemp 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/get-contents/.dirs/runtime 554s ok 18 /fileutils/get-contents 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/get-contents-large-file/.dirs/runtime 554s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/set-contents/.dirs/runtime 554s ok 20 /fileutils/set-contents 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/.dirs/runtime 554s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 554s # Flags 0 and test 0 554s # Flags 0 and test 1 554s # Flags 0 and test 2 554s # Flags 0 and test 3 554s # Flags 0 and test 4 554s # Flags 0 and test 5 554s # Flags 0 and test 6 554s # Flags 1 and test 0 554s # Executing: glib/fileutils.test 554s # Flags 1 and test 1 554s # Flags 1 and test 2 554s # Flags 1 and test 3 554s # Flags 1 and test 4 554s # Flags 1 and test 5 554s # Flags 1 and test 6 554s # Flags 2 and test 0 554s # Flags 2 and test 1 554s # Flags 2 and test 2 554s # Flags 2 and test 3 554s # Flags 2 and test 4 554s # Flags 2 and test 5 554s # Flags 2 and test 6 554s # Flags 3 and test 0 554s # Flags 3 and test 1 554s # Flags 3 and test 2 554s # Flags 3 and test 3 554s # Flags 3 and test 4 554s # Flags 3 and test 5 554s # Flags 3 and test 6 554s # Flags 4 and test 0 554s # Flags 4 and test 1 554s # Flags 4 and test 2 554s # Flags 4 and test 3 554s # Flags 4 and test 4 554s # Flags 4 and test 5 554s # Flags 4 and test 6 554s # Flags 5 and test 0 554s # Flags 5 and test 1 554s # Flags 5 and test 2 554s # Flags 5 and test 3 554s # Flags 5 and test 4 554s # Flags 5 and test 5 554s # Flags 5 and test 6 554s # Flags 6 and test 0 554s # Flags 6 and test 1 554s # Flags 6 and test 2 554s # Flags 6 and test 3 554s # Flags 6 and test 4 554s # Flags 6 and test 5 554s # Flags 6 and test 6 554s ok 21 /fileutils/set-contents-full 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/read-link/.dirs/runtime 554s ok 22 /fileutils/read-link 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/stdio-wrappers/.dirs/runtime 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s ok 23 /fileutils/stdio-wrappers 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/fopen-modes/.dirs/runtime 554s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 554s # Testing fopen() mode 'w' 554s # Testing fopen() mode 'r' 554s # Testing fopen() mode 'a' 554s # Testing fopen() mode 'w+' 554s # Testing fopen() mode 'r+' 554s # Testing fopen() mode 'a+' 554s # Testing fopen() mode 'wb' 554s # Testing fopen() mode 'rb' 554s # Testing fopen() mode 'ab' 554s # Testing fopen() mode 'w+b' 554s # Testing fopen() mode 'r+b' 554s # Testing fopen() mode 'a+b' 554s # Testing fopen() mode 'wb+' 554s # Testing fopen() mode 'rb+' 554s # Testing fopen() mode 'ab+' 554s # Testing fopen() mode 'we' 554s # Testing fopen() mode 're' 554s # Testing fopen() mode 'ae' 554s # Testing fopen() mode 'w+e' 554s # Testing fopen() mode 'r+e' 554s # Testing fopen() mode 'a+e' 554s # Testing fopen() mode 'wbe' 554s # Testing fopen() mode 'rbe' 554s # Testing fopen() mode 'abe' 554s # Testing fopen() mode 'w+be' 554s # Testing fopen() mode 'r+be' 554s # Testing fopen() mode 'a+be' 554s # Testing fopen() mode 'wb+e' 554s # Testing fopen() mode 'rb+e' 554s # Testing fopen() mode 'ab+e' 554s # Testing fopen() mode 'web' 554s # Testing fopen() mode 'reb' 554s # Testing fopen() mode 'aeb' 554s # Testing fopen() mode 'w+eb' 554s # Testing fopen() mode 'r+eb' 554s # Testing fopen() mode 'a+eb' 554s # Testing fopen() mode 'web+' 554s # Testing fopen() mode 'reb+' 554s # Testing fopen() mode 'aeb+' 554s ok 24 /fileutils/fopen-modes 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/clear-fd/.dirs/runtime 554s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 554s # Will be closed by autocleanup: 3, -42 554s # Testing error handling 554s ok 25 /fileutils/clear-fd 554s # Start of set-contents-full tests 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-file/.dirs/runtime 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 554s ok 26 /fileutils/set-contents-full/read-only-file 554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/home 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/cache 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/config 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/data 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/state 554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_J9YUE3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 554s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 554s # Flags 0 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Flags 1 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Flags 2 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Flags 3 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Flags 4 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Flags 5 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s # Flags 6 554s # We do not have CAP_DAC_OVERRIDE or equivalent 554s ok 27 /fileutils/set-contents-full/read-only-directory 554s ok - glib/fileutils.test 554s # Running test: glib/list.test 554s ok - glib/list.test 554s # Running test: glib/cmph-bdz.test 554s ok - glib/cmph-bdz.test 554s # Running test: glib/rwlock.test 554s # End of set-contents-full tests 554s # Start of clear-fd tests 554s # Start of subprocess tests 554s # End of subprocess tests 554s # End of clear-fd tests 554s # End of fileutils tests 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-CLZME3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-U0SME3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-EK4ME3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-WZ2ME3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-5X5WE3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-O41ME3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3/glib-file-set-contents-full-rodir-KO0ME3: Directory not empty 554s Unable to clean up temporary directory /tmp/test_fileutils_J9YUE3: Directory not empty 554s TAP version 14 554s # random seed: R02S650780c9870437130085d3041bb5ed09 554s 1..20 554s # Start of list tests 554s ok 1 /list/sort 554s ok 2 /list/sort-with-data 554s ok 3 /list/insert-before-link 554s ok 4 /list/insert-sorted 554s ok 5 /list/insert-sorted-with-data 554s ok 6 /list/reverse 554s ok 7 /list/nth 554s ok 8 /list/concat 554s ok 9 /list/remove 554s ok 10 /list/remove-all 554s ok 11 /list/first-last 554s ok 12 /list/insert 554s ok 13 /list/free-full 554s ok 14 /list/copy 554s ok 15 /list/copy-deep 554s ok 16 /list/delete-link 554s ok 17 /list/prepend 554s ok 18 /list/position 554s ok 19 /list/double-free 554s # Start of sort tests 554s ok 20 /list/sort/stable 554s # End of sort tests 554s # End of list tests 554s TAP version 14 554s # random seed: R02Sfa1d2812ca60565ad596fc69b44a8456 554s 1..2 554s # Start of cmph-bdz tests 554s ok 1 /cmph-bdz/search 554s ok 2 /cmph-bdz/search-packed 554s # End of cmph-bdz tests 554s TAP version 14 554s # random seed: R02S17ef0b567ede524d6adeafb677481858 554s 1..8 554s # Start of thread tests 554s ok 1 /thread/rwlock1 554s ok 2 /thread/rwlock2 554s ok 3 /thread/rwlock3 554s ok 4 /thread/rwlock4 554s ok 5 /thread/rwlock5 554s ok 6 /thread/rwlock6 559s # Executing: glib/rwlock.test 562s ok 7 /thread/rwlock7 562s # slow test /thread/rwlock7 executed in 7.93 secs 562s ok 8 /thread/rwlock8 562s # End of thread tests 562s ok - glib/rwlock.test 562s # Running test: glib/function-info.test 562s TAP version 14 562s # random seed: R02Sfa50b48bedb29c56d6924eb6040d51ae 562s 1..1 562s # Start of function-info tests 562s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/home 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/cache 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_N21OE3/function-info/invoker/.dirs/system-config2 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/config 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_N21OE3/function-info/invoker/.dirs/system-data2 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/data 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/state 562s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_N21OE3/function-info/invoker/.dirs/runtime 562s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 562s # /function-info/invoker summary: Test preparing a function invoker 562s ok 1 /function-info/invoker 562s # End of function-info tests 562s ok - glib/function-info.test 562s TAP version 14 562s # random seed: R02S5239fc15fbed24ce08d6c65b230ac144 562s 1..7 562s # Start of utf8 tests 562s ok 1 /utf8/strlen 562s ok 2 /utf8/strncpy 562s ok 3 /utf8/strrchr 562s ok 4 /utf8/reverse 562s ok 5 /utf8/substring 562s ok 6 /utf8/make-valid 562s ok 7 /utf8/truncate-middle 562s # End of utf8 tests 562s TAP version 14 562s # random seed: R02S8ce74f39955866bd5e7ac06b303508e9 562s # Running test: glib/utf8-misc.test 562s ok - glib/utf8-misc.test 562s # Running test: glib/mutex.test 562s 1..17 562s # Start of thread tests 562s ok 1 /thread/mutex1 562s ok 2 /thread/mutex2 562s ok 3 /thread/mutex3 562s ok 4 /thread/mutex4 564s # Executing: glib/mutex.test 565s ok 5 /thread/mutex5 565s # slow test /thread/mutex5 executed in 3.49 secs 565s # Start of mutex tests 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # /thread/mutex/errno summary: Validates that errno is not touched upon return 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 565s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 566s ok 6 /thread/mutex/errno 566s # Start of perf tests 566s # max perf: inf mips 566s ok 7 /thread/mutex/perf/uncontended 566s # Start of contended tests 566s # max perf: inf mips 566s ok 8 /thread/mutex/perf/contended/1 566s # max perf: inf mips 566s ok 9 /thread/mutex/perf/contended/2 566s # max perf: inf mips 566s ok 10 /thread/mutex/perf/contended/3 566s # max perf: 5.000000 mips 566s ok 11 /thread/mutex/perf/contended/4 566s # max perf: 6.000000 mips 566s ok 12 /thread/mutex/perf/contended/5 566s # max perf: 7.000000 mips 566s ok 13 /thread/mutex/perf/contended/6 566s # max perf: 4.000000 mips 566s ok 14 /thread/mutex/perf/contended/7 566s # max perf: 1.500000 mips 566s ok 15 /thread/mutex/perf/contended/8 566s # max perf: 5.000000 mips 566s ok 16 /thread/mutex/perf/contended/9 566s # max perf: 11.000000 mips 566s ok 17 /thread/mutex/perf/contended/10 566s # End of contended tests 566s ok - glib/mutex.test 566s # End of perf tests 566s # End of mutex tests 566s # End of thread tests 566s # Running test: glib/mapping.test 566s TAP version 14 566s ok - glib/mapping.test 566s # Running test: glib/dbus-appinfo.test 566s # random seed: R02S575d275bfc26dedad360568fa793c9bb 566s 1..3 566s # Start of mapping tests 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_E1DUE3/mapping/flags/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_E1DUE3/mapping/flags/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_E1DUE3/mapping/flags/.dirs/runtime 566s # test_mapping: ok 566s ok 1 /mapping/flags 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/system-config1:/tmp/test_mapping_E1DUE3/mapping/private/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/system-data1:/tmp/test_mapping_E1DUE3/mapping/private/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_E1DUE3/mapping/private/.dirs/runtime 566s ok 2 /mapping/private 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_E1DUE3/mapping/private-child/.dirs/runtime 566s # test_child_private: child spawned 566s # Subtest: /usr/libexec/installed-tests/glib/mapping 566s # random seed: R02S2218b63ba5c54ab905d3ea19603097b1 566s # test_child_private: received first child signal 566s # test_child_private: received parent signal 566s # Child exited with status 0 566s # test_child_private: received second child signal 566s ok 3 /mapping/private-child 566s # End of mapping tests 566s TAP version 14 566s # random seed: R02Se947456ef9cb96fec3821cf241310410 566s 1..7 566s # Start of appinfo tests 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/runtime 566s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 566s ok 1 /appinfo/dbusappinfo 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/runtime 566s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 566s # Acquired a message bus connection 566s # Acquired the name org.freedesktop.portal.Documents 566s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_KNHUE3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/config 566s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 566s # fake-document-portal cancelled 566s ok 2 /appinfo/flatpak-doc-export 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/runtime 566s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 566s # Acquired a message bus connection 566s # Acquired the name org.freedesktop.portal.Documents 566s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/config 566s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 566s # fake-document-portal cancelled 566s ok 3 /appinfo/flatpak-missing-doc-export 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/runtime 566s # Acquired a message bus connection 566s # Acquired the name org.freedesktop.portal.Desktop 566s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_KNHUE3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/config 566s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 566s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 566s # Response emitted 566s # fake-desktop-portal cancelled 566s ok 4 /appinfo/portal-open-file 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/runtime 566s # Acquired a message bus connection 566s # Acquired the name org.freedesktop.portal.Desktop 566s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/config 566s # Got open file request for http://example.com 566s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 566s # Response emitted 566s # fake-desktop-portal cancelled 566s ok 5 /appinfo/portal-open-uri 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/runtime 566s # Acquired a message bus connection 566s # Acquired the name org.freedesktop.portal.Desktop 566s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/config 566s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 566s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1290844341 566s # Response emitted 566s # fake-desktop-portal cancelled 566s ok 6 /appinfo/portal-open-file-async 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/runtime 566s # Acquired a message bus connection 566s # Acquired the name org.freedesktop.portal.Desktop 566s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_KNHUE3/appinfo/portal-open-uri-async/.dirs/config 566s # Got open file request for http://example.com 566s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio1654781931 566s # Response emitted 566s # fake-desktop-portal cancelled 566s ok 7 /appinfo/portal-open-uri-async 566s # End of appinfo tests 566s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 566s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 566s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 566s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 566s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 566s TAP version 14 566s # random seed: R02S53776ba473d36582723c57960b2ce35b 566s 1..4 566s # Start of enum tests 566s ok 1 /enum/basic 566s ok 2 /enum/define-type 566s # End of enum tests 566s # Start of flags tests 566s ok 3 /flags/basic 566s ok 4 /flags/define-type 566s # End of flags tests 566s TAP version 14 566s # random seed: R02S0dfba6e1f30046e8bdfedf0a2b433f17 566s 1..7 566s # Start of thread tests 566s ok 1 /thread/thread1 566s ok 2 /thread/thread2 566s ok 3 /thread/thread3 566s ok 4 /thread/thread4 566s ok 5 /thread/thread5 566s ok 6 /thread/thread6 566s ok 7 /thread/thread7 566s # End of thread tests 566s ok - glib/dbus-appinfo.test 566s # Running test: glib/enums.test 566s ok - glib/enums.test 566s # Running test: glib/thread.test 566s ok - glib/thread.test 566s # Running test: glib/gdbus-proxy.test 566s TAP version 14 566s # random seed: R02Sfbd4ef9887aa1e90320a3cf69ca1f7c3 566s 1..5 566s # Start of gdbus tests 566s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/home 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/cache 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/system-config2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/config 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/system-data2 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/data 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/state 566s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/.dirs/runtime 567s ok 1 /gdbus/proxy 567s # slow test /gdbus/proxy executed in 1.71 secs 567s # Start of proxy tests 567s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/home 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/cache 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/system-config2 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/config 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/system-data2 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/data 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/state 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-properties/.dirs/runtime 567s ok 2 /gdbus/proxy/no-properties 567s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/home 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/cache 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/config 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/data 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/state 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/wellknown-noauto/.dirs/runtime 567s ok 3 /gdbus/proxy/wellknown-noauto 567s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/home 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/cache 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/system-config2 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/config 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/system-data2 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/data 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/state 567s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/async/.dirs/runtime 569s # Executing: glib/gdbus-proxy.test 569s ok 4 /gdbus/proxy/async 569s # slow test /gdbus/proxy/async executed in 1.71 secs 569s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/home 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/cache 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/system-config2 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/config 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/system-data2 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/data 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/state 569s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_5Q1UE3/gdbus/proxy/no-match-rule/.dirs/runtime 569s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 569s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 571s ok 5 /gdbus/proxy/no-match-rule 571s # slow test /gdbus/proxy/no-match-rule executed in 1.71 secs 571s # End of proxy tests 571s # End of gdbus tests 571s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 571s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 571s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 571s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 571s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 571s ok - glib/gdbus-proxy.test 571s # Running test: glib/application-command-line.test 571s ok - glib/application-command-line.test 571s TAP version 14 571s # random seed: R02S495b4b34eb8129a6f8e5eec009721f48 571s 1..1 571s # Start of application-command-line tests 571s ok 1 /application-command-line/basic-properties 571s # End of application-command-line tests 571s # Running test: glib/cond.test 571s TAP version 14 571s # random seed: R02S0d7031a34e50832fcf0d67c3c9f7efe7 571s 1..4 571s # Start of thread tests 571s ok 1 /thread/cond1 571s ok 2 /thread/cond2 571s # Start of cond tests 572s ok 3 /thread/cond/wait-until 572s # slow test /thread/cond/wait-until executed in 1.02 secs 572s # Start of wait-until tests 572s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 572s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 573s ok - glib/cond.test 573s ok 4 /thread/cond/wait-until/contended-and-interrupted 573s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 573s # End of wait-until tests 573s # End of cond tests 573s # End of thread tests 573s # Running test: glib/gi-inspect-typelib.py.test 573s TAP version 13 573s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpfcw5i78i 573s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 573s # Return code: 0 573s # Output: 573s # Usage: 573s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 573s # 573s # Help Options: 573s # -h, --help Show help options 573s # 573s # Application Options: 573s # --typelib-version=VERSION Typelib version to inspect 573s # --print-shlibs List the shared libraries the typelib requires 573s # --print-typelibs List other typelibs the inspected typelib requires 573s # Error: 573s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmps_jg0i5y 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 573s # Return code: 1 573s # Output: 573s # 573s # Error: 573s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 573s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpni2wcmrr 573s # Running: ['/usr/bin/gi-inspect-typelib'] 573s # Return code: 1 573s # Output: 573s # 573s # Error: 573s # Please specify exactly one namespace 573s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpgi6ltym7 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # shlib: libgobject-2.0.so.0 573s # shlib: libglib-2.0.so.0 573s # Error: 573s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmp9zcfqtwi 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # 573s # Error: 573s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpct0ymg7r 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # shlib: libgobject-2.0.so.0 573s # shlib: libglib-2.0.so.0 573s # Error: 573s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpi9h9q6ou 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # shlib: libgobject-2.0.so.0 573s # Error: 573s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpzvamianv 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # typelib: GLib-2.0 573s # Error: 573s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmppndsswjv 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # shlib: libgobject-2.0.so.0 573s # typelib: GLib-2.0 573s # Error: 573s ok - glib/gi-inspect-typelib.py.test 573s # Running test: glib/null-settings-backend.test 573s ok - glib/null-settings-backend.test 573s # Running test: glib/spawn-test.test 573s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpus_m4ts5 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # shlib: libgio-2.0.so.0 573s # Error: 573s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpwxdwn8cx 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # typelib: GObject-2.0 573s # typelib: GLib-2.0 573s # typelib: GModule-2.0 573s # Error: 573s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 573s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 573s # tmpdir: /tmp/tmpgnuu90ci 573s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 573s # Return code: 0 573s # Output: 573s # shlib: libgio-2.0.so.0 573s # typelib: GObject-2.0 573s # typelib: GLib-2.0 573s # typelib: GModule-2.0 573s # Error: 573s 1..12 573s TAP version 14 573s # random seed: R02S3a9e190a1c914b46366bdf3ef8d254a9 573s 1..1 573s # Start of null-settings-backend tests 573s ok 1 /null-settings-backend/extension-point-registered 573s # End of null-settings-backend tests 573s TAP version 14 573s # random seed: R02S782f9face65481d7727fcf9eb7e651dd 573s 1..2 573s # Start of spawn tests 573s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/home 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/cache 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/system-config2 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/config 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/system-data2 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/data 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/state 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_Z2AHE3/spawn/basics/.dirs/runtime 573s ok 1 /spawn/basics 573s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/home 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/cache 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/system-config2 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/config 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/system-data2 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/data 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/state 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_Z2AHE3/spawn/stdio-overwrite/.dirs/runtime 573s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 573s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 573s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 573s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 573s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 573s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 573s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 573s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 573s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 573s # Fetching GSpawn result output with stdin open, stdout open, stderr open 573s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 573s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 573s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 573s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 573s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 573s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 573s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 573s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 573s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 573s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 573s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 573s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 573s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 573s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 573s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 573s # Fetching GSpawn result with stdin open, stdout open, stderr open 573s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 573s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 573s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 573s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 573s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 573s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 573s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 573s ok 2 /spawn/stdio-overwrite 573s # End of spawn tests 573s ok - glib/spawn-test.test 573s # Running test: glib/gdbus-proxy-well-known-name.test 573s ok - glib/gdbus-proxy-well-known-name.test 573s # Running test: glib/signals-refcount4.test 573s TAP version 14 573s # random seed: R02S06dcd6c747092a423883fcd6802cfdfd 573s 1..1 573s # Start of gdbus tests 573s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/home 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/cache 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/system-config2 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/config 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/system-data2 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/data 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/state 573s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_G04HE3/gdbus/proxy-well-known-name/.dirs/runtime 573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 573s ok 1 /gdbus/proxy-well-known-name 573s # End of gdbus tests 573s TAP version 14 573s # random seed: R02S04353fab6096eecc9ff6fd2788c28811 573s 1..1 573s # Start of gobject tests 573s # Start of refcount tests 573s # init 0x5c76c23b4490 573s # 573s # init 0x5c76c23ac580 573s # 574s # Executing: glib/signals-refcount4.test 578s ok - glib/signals-refcount4.test 578s # dispose 0x5c76c23b4490! 578s # 578s # dispose 0x5c76c23ac580! 578s # 578s ok 1 /gobject/refcount/signals 578s # slow test /gobject/refcount/signals executed in 5.00 secs 578s # End of refcount tests 578s # End of gobject tests 578s # Running test: glib/bookmarkfile.test 578s TAP version 14 578s # random seed: R02S61237abd70d11e449c0afab9f1504e9b 578s 1..96 578s # Start of bookmarks tests 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/load-from-data-dirs/.dirs/runtime 578s ok 1 /bookmarks/load-from-data-dirs 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/to-file/.dirs/runtime 578s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_TOIIE3/bookmarkfile-test-K2IIE3.xbel 578s # Roundtrip from a valid bookmark file 578s ok 2 /bookmarks/to-file 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/move-item/.dirs/runtime 578s ok 3 /bookmarks/move-item 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/corner-cases/.dirs/runtime 578s ok 4 /bookmarks/corner-cases 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/misc/.dirs/runtime 578s ok 5 /bookmarks/misc 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/deprecated/.dirs/runtime 578s ok 6 /bookmarks/deprecated 578s # Start of parse tests 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-42.xbel/.dirs/runtime 578s ok 7 /bookmarks/parse/fail-42.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-13.xbel/.dirs/runtime 578s ok 8 /bookmarks/parse/fail-13.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-02.xbel/.dirs/runtime 578s ok 9 /bookmarks/parse/fail-02.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-41.xbel/.dirs/runtime 578s ok 10 /bookmarks/parse/fail-41.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-29.xbel/.dirs/runtime 578s ok 11 /bookmarks/parse/fail-29.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-14.xbel/.dirs/runtime 578s ok 12 /bookmarks/parse/fail-14.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-36.xbel/.dirs/runtime 578s ok 13 /bookmarks/parse/fail-36.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-03.xbel/.dirs/runtime 578s ok 14 /bookmarks/parse/fail-03.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-31.xbel/.dirs/runtime 578s ok 15 /bookmarks/parse/fail-31.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-35.xbel/.dirs/runtime 578s ok 16 /bookmarks/parse/fail-35.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-16.xbel/.dirs/runtime 578s ok 17 /bookmarks/parse/fail-16.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-09.xbel/.dirs/runtime 578s ok 18 /bookmarks/parse/fail-09.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-06.xbel/.dirs/runtime 578s ok 19 /bookmarks/parse/fail-06.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-22.xbel/.dirs/runtime 578s ok 20 /bookmarks/parse/fail-22.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-15.xbel/.dirs/runtime 578s ok 21 /bookmarks/parse/fail-15.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-01.xbel/.dirs/runtime 578s ok 22 /bookmarks/parse/valid-01.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-28.xbel/.dirs/runtime 578s ok 23 /bookmarks/parse/fail-28.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-40.xbel/.dirs/runtime 578s ok 24 /bookmarks/parse/fail-40.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-10.xbel/.dirs/runtime 578s ok 25 /bookmarks/parse/fail-10.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-37.xbel/.dirs/runtime 578s ok 26 /bookmarks/parse/fail-37.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-01.xbel/.dirs/runtime 578s ok 27 /bookmarks/parse/fail-01.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-12.xbel/.dirs/runtime 578s ok 28 /bookmarks/parse/fail-12.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-20.xbel/.dirs/runtime 578s ok 29 /bookmarks/parse/fail-20.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-33.xbel/.dirs/runtime 578s ok 30 /bookmarks/parse/fail-33.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-11.xbel/.dirs/runtime 578s ok 31 /bookmarks/parse/fail-11.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-07.xbel/.dirs/runtime 578s ok 32 /bookmarks/parse/fail-07.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-27.xbel/.dirs/runtime 578s ok 33 /bookmarks/parse/fail-27.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-25.xbel/.dirs/runtime 578s ok 34 /bookmarks/parse/fail-25.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-21.xbel/.dirs/runtime 578s ok 35 /bookmarks/parse/fail-21.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-26.xbel/.dirs/runtime 578s ok 36 /bookmarks/parse/fail-26.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-38.xbel/.dirs/runtime 578s ok 37 /bookmarks/parse/fail-38.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-04.xbel/.dirs/runtime 578s ok 38 /bookmarks/parse/fail-04.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-18.xbel/.dirs/runtime 578s ok 39 /bookmarks/parse/fail-18.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-08.xbel/.dirs/runtime 578s ok 40 /bookmarks/parse/fail-08.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-24.xbel/.dirs/runtime 578s ok 41 /bookmarks/parse/fail-24.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-34.xbel/.dirs/runtime 578s ok 42 /bookmarks/parse/fail-34.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-05.xbel/.dirs/runtime 578s ok 43 /bookmarks/parse/fail-05.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-30.xbel/.dirs/runtime 578s ok 44 /bookmarks/parse/fail-30.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-32.xbel/.dirs/runtime 578s ok 45 /bookmarks/parse/fail-32.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-02.xbel/.dirs/runtime 578s ok 46 /bookmarks/parse/valid-02.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-39.xbel/.dirs/runtime 578s ok 47 /bookmarks/parse/fail-39.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-23.xbel/.dirs/runtime 578s ok 48 /bookmarks/parse/fail-23.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/valid-03.xbel/.dirs/runtime 578s ok 49 /bookmarks/parse/valid-03.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-17.xbel/.dirs/runtime 578s ok 50 /bookmarks/parse/fail-17.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/parse/fail-19.xbel/.dirs/runtime 578s ok 51 /bookmarks/parse/fail-19.xbel 578s # End of parse tests 578s # Start of copy tests 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-42.xbel/.dirs/runtime 578s ok 52 /bookmarks/copy/fail-42.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-13.xbel/.dirs/runtime 578s ok 53 /bookmarks/copy/fail-13.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-02.xbel/.dirs/runtime 578s ok 54 /bookmarks/copy/fail-02.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-41.xbel/.dirs/runtime 578s ok 55 /bookmarks/copy/fail-41.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-29.xbel/.dirs/runtime 578s ok 56 /bookmarks/copy/fail-29.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-14.xbel/.dirs/runtime 578s ok 57 /bookmarks/copy/fail-14.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-36.xbel/.dirs/runtime 578s ok 58 /bookmarks/copy/fail-36.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-03.xbel/.dirs/runtime 578s ok 59 /bookmarks/copy/fail-03.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-31.xbel/.dirs/runtime 578s ok 60 /bookmarks/copy/fail-31.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-35.xbel/.dirs/runtime 578s ok 61 /bookmarks/copy/fail-35.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-16.xbel/.dirs/runtime 578s ok 62 /bookmarks/copy/fail-16.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-09.xbel/.dirs/runtime 578s ok 63 /bookmarks/copy/fail-09.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-06.xbel/.dirs/runtime 578s ok 64 /bookmarks/copy/fail-06.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-22.xbel/.dirs/runtime 578s ok 65 /bookmarks/copy/fail-22.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-15.xbel/.dirs/runtime 578s ok 66 /bookmarks/copy/fail-15.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-01.xbel/.dirs/runtime 578s ok 67 /bookmarks/copy/valid-01.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-28.xbel/.dirs/runtime 578s ok 68 /bookmarks/copy/fail-28.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-40.xbel/.dirs/runtime 578s ok 69 /bookmarks/copy/fail-40.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-10.xbel/.dirs/runtime 578s ok 70 /bookmarks/copy/fail-10.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-37.xbel/.dirs/runtime 578s ok 71 /bookmarks/copy/fail-37.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-01.xbel/.dirs/runtime 578s ok 72 /bookmarks/copy/fail-01.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-12.xbel/.dirs/runtime 578s ok 73 /bookmarks/copy/fail-12.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-20.xbel/.dirs/runtime 578s ok 74 /bookmarks/copy/fail-20.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-33.xbel/.dirs/runtime 578s ok 75 /bookmarks/copy/fail-33.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-11.xbel/.dirs/runtime 578s ok 76 /bookmarks/copy/fail-11.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-07.xbel/.dirs/runtime 578s ok 77 /bookmarks/copy/fail-07.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-27.xbel/.dirs/runtime 578s ok 78 /bookmarks/copy/fail-27.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-25.xbel/.dirs/runtime 578s ok 79 /bookmarks/copy/fail-25.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-21.xbel/.dirs/runtime 578s ok 80 /bookmarks/copy/fail-21.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-26.xbel/.dirs/runtime 578s ok 81 /bookmarks/copy/fail-26.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-38.xbel/.dirs/runtime 578s ok 82 /bookmarks/copy/fail-38.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-04.xbel/.dirs/runtime 578s ok 83 /bookmarks/copy/fail-04.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-18.xbel/.dirs/runtime 578s ok 84 /bookmarks/copy/fail-18.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-08.xbel/.dirs/runtime 578s ok 85 /bookmarks/copy/fail-08.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-24.xbel/.dirs/runtime 578s ok 86 /bookmarks/copy/fail-24.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-34.xbel/.dirs/runtime 578s ok 87 /bookmarks/copy/fail-34.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-05.xbel/.dirs/runtime 578s ok 88 /bookmarks/copy/fail-05.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-30.xbel/.dirs/runtime 578s ok 89 /bookmarks/copy/fail-30.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-32.xbel/.dirs/runtime 578s ok 90 /bookmarks/copy/fail-32.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-02.xbel/.dirs/runtime 578s ok 91 /bookmarks/copy/valid-02.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-39.xbel/.dirs/runtime 578s ok 92 /bookmarks/copy/fail-39.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-23.xbel/.dirs/runtime 578s ok 93 /bookmarks/copy/fail-23.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/valid-03.xbel/.dirs/runtime 578s ok 94 /bookmarks/copy/valid-03.xbel 578s ok - glib/bookmarkfile.test 578s # Running test: glib/stream-rw_all.test 578s ok - glib/stream-rw_all.test 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-17.xbel/.dirs/runtime 578s ok 95 /bookmarks/copy/fail-17.xbel 578s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/home 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/cache 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/config 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/data 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/state 578s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_TOIIE3/bookmarks/copy/fail-19.xbel/.dirs/runtime 578s ok 96 /bookmarks/copy/fail-19.xbel 578s # End of copy tests 578s # End of bookmarks tests 578s TAP version 14 578s # random seed: R02Se66feff148c02fbdc7d9ecd2c9f719d8 578s 1..3 578s # Start of stream tests 578s # Start of read_all_async tests 578s ok 1 /stream/read_all_async/memory 578s # End of read_all_async tests 578s # Start of write_all_async tests 578s ok 2 /stream/write_all_async/memory 578s # End of write_all_async tests 578s # Start of read_write_all_async tests 578s ok 3 /stream/read_write_all_async/pipe 578s # End of read_write_all_async tests 578s # End of stream tests 578s # Running test: glib/atomic-c-11.test 578s ok - glib/atomic-c-11.test 578s # Running test: glib/socket-listener.test 578s TAP version 14 578s # random seed: R02S2a70fb1042d768390b220b61235c1b92 578s 1..2 578s # Start of atomic tests 578s ok 1 /atomic/types 578s ok 2 /atomic/threaded 578s # End of atomic tests 578s TAP version 14 578s # random seed: R02Sf24550995b5813b50f059d687db96ddc 578s 1..4 578s # Start of socket-listener tests 578s ok 1 /socket-listener/event-signal 578s # Start of accept tests 578s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 578s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 578s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x605a71f764c0 and GSocketClientAsyncConnectData 0x605a71f71960 578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x605a71f78b50 and GSocketClientAsyncConnectData 0x605a71f789a0 578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x605a71f79370 and GSocketClientAsyncConnectData 0x605a71f790f0 578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x605a71f79bf0 and GSocketClientAsyncConnectData 0x605a71f79970 578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 578s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x605a71f7a410 and GSocketClientAsyncConnectData 0x605a71f7a190 578s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 578s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x605a71f7c950 for GSocketClientAsyncConnectData 0x605a71f71960 578s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 578s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x605a71f7eac0 for GSocketClientAsyncConnectData 0x605a71f789a0 578s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 578s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x605a71f7f270 for GSocketClientAsyncConnectData 0x605a71f790f0 578s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 578s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x605a71f7f910 for GSocketClientAsyncConnectData 0x605a71f79970 578s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 578s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 578s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x605a71f7bff0 for GSocketClientAsyncConnectData 0x605a71f7a190 578s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 578s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 578s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 578s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 578s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 578s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 578s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 578s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 578s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 578s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 578s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 578s ok - glib/socket-listener.test 578s # Running test: glib/simple-async-result.test 578s ok - glib/simple-async-result.test 578s # Running test: glib/gapplication.test 578s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 578s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 578s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 578s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 578s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 578s ok 2 /socket-listener/accept/multi-simultaneously 578s # End of accept tests 578s # Start of add-any-inet-port tests 578s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 578s # Test 0 578s # Test 1 578s # Test 2 578s # Test 3 578s # Test 4 578s # Test 5 578s # Test 6 578s # Test 7 578s # Test 8 578s # Test 9 578s # Test 10 578s ok 3 /socket-listener/add-any-inet-port/listen-failures 578s # End of add-any-inet-port tests 578s # Start of add-inet-port tests 578s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 578s # Test 0 578s # Test 1 578s # Test 2 578s # Test 3 578s # Test 4 578s # Test 5 578s # Test 6 578s # Test 7 578s # Test 8 578s # Test 9 578s # Test 10 578s ok 4 /socket-listener/add-inet-port/listen-failures 578s # End of add-inet-port tests 578s # End of socket-listener tests 578s TAP version 14 578s # random seed: R02S43b16dbd021f12dd28242154cd126ffb 578s 1..2 578s # Start of gio tests 578s # Start of simple-async-result tests 578s ok 1 /gio/simple-async-result/test 578s # GLib-GIO-DEBUG: GTask 0x63d5b446db10 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 578s ok 2 /gio/simple-async-result/valid 578s # End of simple-async-result tests 578s # End of gio tests 578s TAP version 14 578s # random seed: R02S1e28ac37029713c969f534b18fa3c684 578s 1..25 578s # Start of gapplication tests 578s ok 1 /gapplication/no-dbus 578s ok 2 /gapplication/no-appid 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s ok 3 /gapplication/properties 578s ok 4 /gapplication/app-id 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s ok 5 /gapplication/quit 578s ok 6 /gapplication/registered 578s ok 7 /gapplication/local-actions 578s ok 8 /gapplication/local-command-line 578s ok 9 /gapplication/resource-path 578s ok 10 /gapplication/test-help 578s ok 11 /gapplication/command-line-done 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s ok 12 /gapplication/test-busy 578s ok 13 /gapplication/test-handle-local-options1 578s ok 14 /gapplication/test-handle-local-options2 578s ok 15 /gapplication/test-handle-local-options3 578s ok 16 /gapplication/api 578s ok 17 /gapplication/version 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 578s # launching subprocess 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s ok 18 /gapplication/replace 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 578s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 578s # launching subprocess 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s ok 19 /gapplication/no-replace 579s # slow test /gapplication/no-replace executed in 0.50 secs 579s # Start of command-line tests 579s # /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 579s ok 20 /gapplication/command-line/arguments 579s # End of command-line tests 579s # Start of dbus tests 579s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 579s # Message 0 579s # Message 1 579s # Message 2 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s ok 21 /gapplication/dbus/activate 579s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 579s # Message 0 579s # Executing: glib/gapplication.test 579s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 579s # Message 1 579s # Message 2 579s # Message 3 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s ok 22 /gapplication/dbus/open 579s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 579s # Message 0 579s # Message 1 579s ok - glib/gapplication.test 579s # Running test: glib/task.test 579s # Message 2 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s ok 23 /gapplication/dbus/command-line 579s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s ok 24 /gapplication/dbus/command-line-done 579s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 579s # Message 0 579s # Message 1 579s # Message 2 579s # Message 3 579s # Message 4 579s # Message 5 579s # Message 6 579s # Message 7 579s # Message 8 579s # Message 9 579s # Message 10 579s # Message 11 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 579s ok 25 /gapplication/dbus/activate-action 579s # End of dbus tests 579s # End of gapplication tests 579s TAP version 14 579s # random seed: R02S7c855226c2e454238ad220f9272f72a1 579s 1..36 579s # Start of gtask tests 579s ok 1 /gtask/basic 579s ok 2 /gtask/error 579s ok 3 /gtask/error-literal 579s ok 4 /gtask/error-literal-from-variable 579s ok 5 /gtask/return-from-same-iteration 579s ok 6 /gtask/return-from-toplevel 579s ok 7 /gtask/return-from-anon-thread 579s ok 8 /gtask/return-from-wrong-thread 579s ok 9 /gtask/no-callback 579s ok 10 /gtask/report-error 579s ok 11 /gtask/priority 579s ok 12 /gtask/name 579s ok 13 /gtask/static-name 579s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 579s ok 14 /gtask/asynchronous-cancellation 579s ok 15 /gtask/check-cancellable 579s ok 16 /gtask/return-if-cancelled 579s ok 17 /gtask/run-in-thread 579s ok 18 /gtask/run-in-thread-sync 579s ok 19 /gtask/run-in-thread-priority 579s ok 20 /gtask/run-in-thread-nested 580s ok 21 /gtask/run-in-thread-overflow 580s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 580s # GLib-GIO-DEBUG: GTask 0x5e59271e32b0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 580s # GLib-GIO-DEBUG: GTask 0x5e59271e3440 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 580s ok 22 /gtask/return-on-cancel 580s # GLib-GIO-DEBUG: GTask 0x5e59271793e0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 580s ok 23 /gtask/return-on-cancel-sync 580s # GLib-GIO-DEBUG: GTask 0x5e592717a350 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 580s ok 24 /gtask/return-on-cancel-atomic 580s ok 25 /gtask/return-pointer 580s ok 26 /gtask/return-value 580s ok 27 /gtask/return-prefixed-error 580s ok 28 /gtask/object-keepalive 580s ok 29 /gtask/legacy-error 580s ok 30 /gtask/finalize-without-return 580s # Start of name tests 580s ok 31 /gtask/name/macro-wrapper 580s # End of name tests 580s # Start of return tests 580s ok 32 /gtask/return/error-first 580s ok 33 /gtask/return/value-first 580s # Start of in-idle tests 580s ok 34 /gtask/return/in-idle/error-first 580s ok - glib/task.test 580s # Running test: glib/cancellable.test 580s ok 35 /gtask/return/in-idle/value-first 580s # End of in-idle tests 580s # End of return tests 580s # Start of attach-source tests 580s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 580s ok 36 /gtask/attach-source/set-name 580s # End of attach-source tests 580s # End of gtask tests 580s TAP version 14 580s # random seed: R02Scc1ce503b7a5977776363e8dd9f19dfb 580s 1..18 580s # Start of cancellable tests 580s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 580s ok 2 /cancellable/null 580s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 580s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 580s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 580s ok 4 /cancellable/connect-to-disposing-callback 580s ok 5 /cancellable/connect-cancelled-data-is-destroyed 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 1 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 0 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 1 580s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 580s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 580s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 580s ok 7 /cancellable/connect-cancelled-to-disposing-callback 580s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 1 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 0 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 1 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 0 580s # Toggle reference callback for GCancellable (0x61c266177bf0), last: 1 580s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 580s # /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 580s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 580s # /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 580s ok 11 /cancellable/resets-on-cancel-callback-hangs 580s ok 12 /cancellable/poll-fd 580s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 580s ok 13 /cancellable/poll-fd-cancelled 580s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 580s ok 14 /cancellable/poll-fd-cancelled-threaded 580s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 580s ok 15 /cancellable/cancel-reset-races 580s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 580s not ok 16 /cancellable/cancel-reset-connect-races # TODO We didn't really checked if callbacks is called properly 580s # End of cancellable tests 580s # Start of cancellable-source tests 580s # /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) 580s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 580s ok 17 /cancellable-source/threaded-dispose 580s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 580s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 580s ok 18 /cancellable-source/can-be-fired-multiple-times 580s # End of cancellable-source tests 580s ok - glib/cancellable.test 580s # Running test: glib/fileattributematcher.test 580s ok - glib/fileattributematcher.test 580s TAP version 14 580s # random seed: R02S0bdfe6d07bc8ad8b89049c2d16007e2b 580s 1..3 580s # Start of fileattributematcher tests 580s ok 1 /fileattributematcher/exact 580s ok 2 /fileattributematcher/equality 580s ok 3 /fileattributematcher/subtract 580s # End of fileattributematcher tests 580s # Running test: glib/tls-database.test 580s ok - glib/tls-database.test 580s # Running test: glib/mappedfile.test 580s ok - glib/mappedfile.test 580s # Running test: glib/hostutils.test 580s ok - glib/hostutils.test 580s # Running test: glib/references.test 580s TAP version 14 580s # random seed: R02S729f60459f4e9c42c6efc9da72064f9e 580s 1..1 580s # Start of tls-backend tests 580s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 580s ok 1 /tls-backend/set-default-database 580s # End of tls-backend tests 580s TAP version 14 580s # random seed: R02S69c1926b179a07492b167d3f3fe3a8bb 580s 1..7 580s # Start of mappedfile tests 580s ok 1 /mappedfile/basic 580s ok 2 /mappedfile/empty 580s ok 3 /mappedfile/device 580s ok 4 /mappedfile/nonexisting 580s ok 5 /mappedfile/writable 580s ok 6 /mappedfile/writable_fd 580s ok 7 /mappedfile/gbytes 580s # End of mappedfile tests 580s TAP version 14 580s # random seed: R02Sf30a74d70c89f9b6a87ff57b09cfb99f 580s 1..3 580s # Start of hostutils tests 580s ok 1 /hostutils/to_ascii 580s ok 2 /hostutils/to_unicode 580s ok 3 /hostutils/is_ip_addr 580s # End of hostutils tests 580s TAP version 14 580s # random seed: R02S7e528d15639f66af240771be772fbd4e 580s 1..4 580s # Start of gobject tests 580s ok 1 /gobject/references 580s ok 2 /gobject/references-many 580s ok 3 /gobject/references_two 580s ok - glib/references.test 580s ok 4 /gobject/references_run_dispose 580s # End of gobject tests 580s # Running test: glib/contexts.test 580s TAP version 14 580s # random seed: R02Sa4ab64634e48d4927f42223c10e5cf73 580s 1..5 580s # Start of gio tests 580s # Start of contexts tests 580s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 580s ok 1 /gio/contexts/thread-independence 580s ok 2 /gio/contexts/context-independence 580s # Start of context-specific tests 580s ok 3 /gio/contexts/context-specific/identity 580s ok 4 /gio/contexts/context-specific/emit 580s ok 5 /gio/contexts/context-specific/emit-and-unref 580s # End of context-specific tests 580s # End of contexts tests 580s # End of gio tests 580s ok - glib/contexts.test 580s # Running test: glib/objects-refcount1.test 580s TAP version 14 581s # random seed: R02Sf5370776ab75f35daee97aedfdc46f3a 581s 1..1 581s # Start of gobject tests 581s # Start of refcount tests 581s # init 0x63a0c7904d80 581s # 581s # init 0x63a0c7904e90 581s # 584s # Executing: glib/objects-refcount1.test 586s # dispose 0x63a0c7904d80! 586s # 586s # dispose 0x63a0c7904e90! 586s # 586s ok 1 /gobject/refcount/object-basics 586s # slow test /gobject/refcount/object-basics executed in 5.00 secs 586s # End of refcount tests 586s # End of gobject tests 586s ok - glib/objects-refcount1.test 586s # Running test: glib/filenamecompleter.test 586s TAP version 14 586s # random seed: R02Sdf2b353b365f1500179d4fc84080cb93 586s 1..1 586s # Start of filenamecompleter tests 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_I7E2E3/filenamecompleter/basic/.dirs/runtime 586s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 586s ok 1 /filenamecompleter/basic 586s # End of filenamecompleter tests 586s ok - glib/filenamecompleter.test 586s # Running test: glib/hook.test 586s ok - glib/hook.test 586s # Running test: glib/live-g-file.test 586s TAP version 14 586s # random seed: R02S4f93b85bd4739e3762b8cde64499d22b 586s 1..2 586s # Start of hook tests 586s ok 1 /hook/basics 586s ok 2 /hook/corner-cases 586s # End of hook tests 586s TAP version 14 586s # random seed: R02Saa53961b8c77217a2ffabbbb3a6bfbcb 586s 1..13 586s # Start of live-g-file tests 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/prep_clean_structure/.dirs/runtime 586s # Cleaning target testing structure in '/tmp/test_live-g-file_8XV2E3/testdir_live-g-file'... 586s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 586s ok 1 /live-g-file/prep_clean_structure 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/create_structure/.dirs/runtime 586s # 586s # Going to create testing structure in '/tmp/test_live-g-file_8XV2E3/testdir_live-g-file'... 586s # Creating directory 'dir1'... 586s # Creating directory 'dir1/subdir'... 586s # Creating directory 'dir2'... 586s # Creating directory 'dir-target'... 586s # Creating directory 'dir_no-access'... 586s # Creating directory 'dir_no-write'... 586s # Creating file 'target-file'... 586s # Creating file 'normal_file'... 586s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 586s # Creating file 'executable_file'... 586s # Creating file 'private_file'... 586s # Creating file 'normal_file2'... 586s # Creating file 'readonly_file'... 586s # Creating file 'UTF_příliš z'... 586s # Creating directory 'dir_příliš z'... 586s # Creating symlink 'lost_symlink' --> 'nowhere'... 586s # Creating directory 'dir_hidden'... 586s # Creating file 'dir_hidden/.a-hidden-file'... 586s # Creating file 'dir_hidden/file-in-.hidden1'... 586s # Creating file 'dir_hidden/file-in-.hidden2'... 586s # Creating pattern file... 586s # done. 586s ok 2 /live-g-file/create_structure 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_initial_structure/.dirs/runtime 586s # Testing sample structure in '/tmp/test_live-g-file_8XV2E3/testdir_live-g-file'... 586s # Testing file 'dir1'... 586s # Testing file 'dir1/subdir'... 586s # Testing file 'dir2'... 586s # Testing file 'dir-target'... 586s # Testing file 'dir_no-access'... 586s # Testing file 'dir_no-write'... 586s # Testing file 'target-file'... 586s # Testing file 'normal_file'... 586s # Testing file 'normal_file-symlink'... 586s # Testing file 'executable_file'... 586s # Testing file 'private_file'... 586s # Testing file 'normal_file2'... 586s # Testing file 'readonly_file'... 586s # Testing file 'UTF_příliš z'... 586s # Testing file 'dir_příliš z'... 586s # Testing file 'lost_symlink'... 586s # Testing file 'dir_hidden'... 586s # Testing file 'dir_hidden/.a-hidden-file'... 586s # Testing file 'dir_hidden/file-in-.hidden1'... 586s # Testing file 'dir_hidden/file-in-.hidden2'... 586s # Testing pattern file... 586s # read 65536 bytes, total = 65536 of 65536. 586s ok 3 /live-g-file/test_initial_structure 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_traverse_structure/.dirs/runtime 586s # Traversing through the sample structure in '/tmp/test_live-g-file_8XV2E3/testdir_live-g-file'... 586s # Found file dir1, relative to root: dir1 586s # Found file subdir, relative to root: dir1/subdir 586s # Found file dir2, relative to root: dir2 586s # Found file dir-target, relative to root: dir-target 586s # Found file dir_no-access, relative to root: dir_no-access 586s # Found file dir_no-write, relative to root: dir_no-write 586s # Found file target-file, relative to root: target-file 586s # Found file normal_file, relative to root: normal_file 586s # Found file normal_file-symlink, relative to root: normal_file-symlink 586s # Found file executable_file, relative to root: executable_file 586s # Found file private_file, relative to root: private_file 586s # Found file normal_file2, relative to root: normal_file2 586s # Found file readonly_file, relative to root: readonly_file 586s # Found file UTF_příliš z, relative to root: UTF_příliš z 586s # Found file dir_příliš z, relative to root: dir_příliš z 586s # Found file lost_symlink, relative to root: lost_symlink 586s # Found file dir_hidden, relative to root: dir_hidden 586s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 586s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 586s # Found file .hidden, relative to root: dir_hidden/.hidden 586s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 586s # Found file pattern_file, relative to root: pattern_file 586s ok 4 /live-g-file/test_traverse_structure 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_enumerate/.dirs/runtime 586s # Test enumerate '/tmp/test_live-g-file_8XV2E3/testdir_live-g-file'... 586s # Testing file 'dir_no-access' 586s # Testing file 'normal_file' 586s # Testing file 'normal_file-symlink' 586s # Testing file 'not_exists' 586s # Testing file 'not_exists' 586s # Testing file 'not_exists2' 586s # Testing file 'not_exists3' 586s # Testing file 'not_exists4' 586s # Testing file 'dir_no-execute/file' 586s ok 5 /live-g-file/test_enumerate 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_open/.dirs/runtime 586s # test_open: 'dir1' 586s # test_open: 'dir_no-access' 586s # test_open: 'target-file' 586s # test_open: 'normal_file-symlink' 586s # test_open: 'executable_file' 586s # test_open: 'private_file' 586s # test_open: 'readonly_file' 586s # test_open: 'UTF_příliš z' 586s # test_open: 'pattern_file' 586s # test_open: 'not_exists' 586s # test_open: 'dir_no-execute/file' 586s # test_open: 'lost_symlink' 586s ok 6 /live-g-file/test_open 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_create/.dirs/runtime 586s # test_create: 'dir1' 586s # error code 3 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir1”: Is a directory 586s # test_create: 'dir1/subdir' 586s # error code 3 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir1/subdir”: Is a directory 586s # test_create: 'dir2' 586s # error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir2”: File exists 586s # test_create: 'normal_file' 586s # error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/normal_file”: File exists 586s # test_create: 'executable_file' 586s # test_create: 'private_file' 586s # test_create: 'normal_file2' 586s # test_create: 'UTF_příliš z' 586s # error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/UTF_příliš z”: File exists 586s # test_create: 'dir_příliš z' 586s # error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_příliš z”: File exists 586s # test_create: 'pattern_file' 586s # test_create: 'not_exists2' 586s # test_create: 'not_exists3' 586s # test_create: 'not_exists4' 586s ok 7 /live-g-file/test_create 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_copy_move/.dirs/runtime 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir1/subdir' --> 'dir-target' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir1/subdir' --> '.' 586s # res = 0, error code 2 = Target file exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir1/subdir' --> 'target-file' 586s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir1/subdir' --> 'not_exists' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir2' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir-target' --> 'dir-target' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir-target' --> '.' 586s # res = 0, error code 2 = Target file exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir-target' --> 'target-file' 586s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/dir-target”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir-target' --> 'not_exists' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir-target' --> 'dir_no-access' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'dir-target' --> 'dir_no-write' 586s # res = 0, error code 25 = Can’t recursively copy directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'target-file' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'target-file' --> '.' 586s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file”: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'target-file' --> 'target-file' 586s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/target-file”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'target-file' --> 'not_exists' 586s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/target-file”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'target-file' --> 'dir_no-access' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'target-file' --> 'dir_no-write' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file-symlink' --> '.' 586s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/normal_file-symlink: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file-symlink' --> 'target-file' 586s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 586s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 586s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 586s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> '.' 586s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/executable_file”: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> 'target-file' 586s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/executable_file”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> 'not_exists' 586s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> 'dir_no-access' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'executable_file' --> 'dir_no-write' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> '.' 586s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/private_file”: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> 'target-file' 586s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/private_file”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> 'not_exists' 586s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/private_file”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> 'dir_no-access' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'private_file' --> 'dir_no-write' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> '.' 586s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/normal_file2”: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> 'target-file' 586s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/normal_file2”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> 'not_exists' 586s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> 'dir_no-access' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'normal_file2' --> 'dir_no-write' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> '.' 586s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/UTF_příliš z”: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> 'target-file' 586s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 586s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'pattern_file' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'pattern_file' --> '.' 586s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/pattern_file”: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'pattern_file' --> 'target-file' 586s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/pattern_file”: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'pattern_file' --> 'not_exists' 586s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'pattern_file' --> 'dir_no-access' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'pattern_file' --> 'dir_no-write' 586s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> 'dir-target' 586s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> '.' 586s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> 'target-file' 586s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> 'not_exists' 586s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> 'dir_no-access' 586s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> 'dir_no-write' 586s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists”: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'not_exists' --> 'dir-target' 586s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'lost_symlink' --> 'dir-target' 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'lost_symlink' --> '.' 586s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/lost_symlink: File exists 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'lost_symlink' --> 'target-file' 586s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/target-file/lost_symlink: Not a directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'lost_symlink' --> 'not_exists' 586s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 586s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 586s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 586s ok 8 /live-g-file/test_copy_move 586s ok - glib/live-g-file.test 586s # Running test: glib/gdbus-bz627724.test 586s ok - glib/gdbus-bz627724.test 586s # Running test: glib/portal-support-snap-classic.test 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_delete/.dirs/runtime 586s # Deleting dir1, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir1 586s # result = 0, error = Error removing file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir1: Directory not empty 586s # Deleting dir2, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir2 586s # result = 0, error = Error removing file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir2: No such file or directory 586s # Deleting executable_file, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/executable_file 586s # result = 0, error = Error trashing file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/executable_file: No such file or directory 586s # Deleting readonly_file, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/readonly_file 586s # Deleting dir_příliš z, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_příliš z 586s # Deleting not_exists, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists 586s # result = 0, error = Error removing file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists: No such file or directory 586s # Deleting not_exists, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists 586s # result = 0, error = Error trashing file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/not_exists: No such file or directory 586s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-execute/file 586s # result = 0, error = Error removing file /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/dir_no-execute/file: No such file or directory 586s # Deleting lost_symlink, path = /tmp/test_live-g-file_8XV2E3/testdir_live-g-file/lost_symlink 586s ok 9 /live-g-file/test_delete 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_make_directory_with_parents/.dirs/runtime 586s # We do not have CAP_DAC_OVERRIDE or equivalent 586s ok 10 /live-g-file/test_make_directory_with_parents 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/final_clean/.dirs/runtime 586s # Cleaning target testing structure in '/tmp/test_live-g-file_8XV2E3/testdir_live-g-file'... 586s # deleting 'dir1' 586s # deleting 'subdir' 586s # deleting 'dir-target' 586s # deleting 'dir2' 586s # deleting 'target-file' 586s # deleting 'normal_file-symlink' 586s # deleting 'pattern_file' 586s # deleting 'executable_file' 586s # deleting 'private_file' 586s # deleting 'normal_file2' 586s # deleting 'UTF_příliš z' 586s # deleting 'lost_symlink' 586s # deleting 'dir_no-access' 586s # deleting 'dir_no-write' 586s # deleting 'target-file' 586s # deleting 'normal_file' 586s # deleting 'normal_file-symlink' 586s # deleting 'executable_file~' 586s # deleting 'private_file' 586s # deleting 'normal_file2~' 586s # deleting 'a' 586s # deleting 'UTF_příliš z' 586s # deleting 'dir_hidden' 586s # deleting '.a-hidden-file' 586s # deleting 'file-in-.hidden1' 586s # deleting '.hidden' 586s # deleting 'file-in-.hidden2' 586s # deleting 'pattern_file' 586s # deleting 'executable_file' 586s # deleting 'normal_file2' 586s # deleting 'not_exists2' 586s # deleting 'not_exists3' 586s # deleting 'not_exists4' 586s ok 11 /live-g-file/final_clean 586s # Start of test_unix_is_mountpoint tests 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 586s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_8XV2E3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 586s ok 13 /live-g-file/test_unix_is_mountpoint/proc 586s # End of test_unix_is_mountpoint tests 586s # End of live-g-file tests 586s TAP version 14 586s # random seed: R02S168e25b88aa90774523b1c745dcbb4d3 586s 1..1 586s # Start of gdbus tests 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_GKLSE3/gdbus/bz627724/.dirs/runtime 586s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 586s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 586s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 586s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 586s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 586s ok 1 /gdbus/bz627724 586s # End of gdbus tests 586s TAP version 14 586s # random seed: R02S7cc6ae0877c5d006c9848f3688051748 586s 1..3 586s # Start of portal-support tests 586s # Start of snap-classic tests 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl/.dirs/runtime 586s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/no-snapctl: No such file or directory 586s ok 1 /portal-support/snap-classic/no-snapctl 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/runtime 586s # Created snap.yaml in /tmp/test_portal-support-snap-classic_4UPSE3/meta/snap.yaml 586s # Created snapctl in /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none/.dirs/runtime/snapctl 586s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/none: No such file or directory 586s ok 2 /portal-support/snap-classic/none 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/runtime 586s # Created snap.yaml in /tmp/test_portal-support-snap-classic_4UPSE3/meta/snap.yaml 586s # Created snapctl in /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all/.dirs/runtime/snapctl 586s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_4UPSE3/portal-support/snap-classic/all: No such file or directory 586s ok 3 /portal-support/snap-classic/all 586s # End of snap-classic tests 586s # End of portal-support tests 586s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_4UPSE3: No such file or directory 586s TAP version 14 586s # random seed: R02S325e56e3197484904739741725346f52 586s 1..8 586s # Start of monitor tests 586s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 586s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 586s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 586s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s # Start of file tests 586s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 586s # End of file tests 586s # End of monitor tests 586s TAP version 14 586s # random seed: R02S7a3b98a61eb62bea469a812e7c9e87c8 586s 1..4 586s # Start of struct-info tests 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_SAHSE3/struct-info/field-iterators/.dirs/runtime 586s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 586s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 586s ok 1 /struct-info/field-iterators 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_SAHSE3/struct-info/sizeof-gvalue/.dirs/runtime 586s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 586s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 586s ok 2 /struct-info/sizeof-gvalue 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_SAHSE3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 586s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 586s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 586s ok 3 /struct-info/is-pointer-for-struct-method-arg 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_SAHSE3/struct-info/boxed/.dirs/runtime 586s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 586s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 586s ok 4 /struct-info/boxed 586s # End of struct-info tests 586s TAP version 14 586s # random seed: R02S0bf72cb91bbcda6f585b98688337823b 586s 1..9 586s # Start of gdbus tests 586s ok - glib/portal-support-snap-classic.test 586s # Running test: glib/testfilemonitor.test 586s ok - glib/testfilemonitor.test 586s # Running test: glib/struct-info.test 586s ok - glib/struct-info.test 586s # Running test: glib/gdbus-addresses.test 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/empty-address/.dirs/runtime 586s ok 1 /gdbus/empty-address 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unsupported-address/.dirs/runtime 586s ok 2 /gdbus/unsupported-address 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/address-parsing/.dirs/runtime 586s ok 3 /gdbus/address-parsing 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/unix-address/.dirs/runtime 586s ok 4 /gdbus/unix-address 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/nonce-tcp-address/.dirs/runtime 586s ok 5 /gdbus/nonce-tcp-address 586s ok - glib/gdbus-addresses.test 586s # Running test: glib/socket.test 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/tcp-address/.dirs/runtime 586s ok 6 /gdbus/tcp-address 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/autolaunch-address/.dirs/runtime 586s ok 7 /gdbus/autolaunch-address 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/mixed-address/.dirs/runtime 586s ok 8 /gdbus/mixed-address 586s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/home 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/cache 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/system-config2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/config 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/system-data2 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/data 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/state 586s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZPJSE3/gdbus/escape-address/.dirs/runtime 586s ok 9 /gdbus/escape-address 586s # End of gdbus tests 586s TAP version 14 586s # random seed: R02Sd04b1be1982df47d7ab5e88aaeb8e6d6 586s 1..30 586s # Start of socket tests 587s ok 1 /socket/ipv4_sync 587s # slow test /socket/ipv4_sync executed in 1.00 secs 588s ok 2 /socket/ipv4_async 588s # slow test /socket/ipv4_async executed in 1.00 secs 588s ok 3 /socket/ipv6_sync 588s ok 4 /socket/ipv6_async 588s ok 5 /socket/ipv6_v4mapped 589s ok 6 /socket/close_graceful 589s # slow test /socket/close_graceful executed in 1.00 secs 589s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 589s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 589s ok 8 /socket/fd_reuse 589s ok 9 /socket/address 589s ok 10 /socket/unix-from-fd 589s ok 11 /socket/unix-connection 589s ok 12 /socket/unix-connection-ancillary-data 589s ok 13 /socket/source-postmortem 589s ok 14 /socket/read_write 589s ok 15 /socket/read_writev 589s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 589s ok 16 /socket/receive_bytes 589s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 589s ok 17 /socket/receive_bytes_from 589s # Start of ipv4_sync tests 589s ok 18 /socket/ipv4_sync/datagram 589s # Start of datagram tests 589s # Executing: glib/socket.test 590s ok 19 /socket/ipv4_sync/datagram/timeouts 590s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 590s # End of datagram tests 590s # End of ipv4_sync tests 590s # Start of ipv6_sync tests 590s ok 20 /socket/ipv6_sync/datagram 590s # Start of datagram tests 591s ok 21 /socket/ipv6_sync/datagram/timeouts 591s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 591s # End of datagram tests 591s # End of ipv6_sync tests 591s # Start of reuse tests 591s ok 22 /socket/reuse/tcp 591s ok 23 /socket/reuse/udp 591s # End of reuse tests 591s # Start of get_available tests 591s ok 24 /socket/get_available/datagram 591s ok 25 /socket/get_available/stream 591s # End of get_available tests 591s # Start of credentials tests 591s # Supported on this OS: GCredentials:linux-ucred:pid=0 591s ok 26 /socket/credentials/tcp_client 591s # Supported on this OS: GCredentials:linux-ucred:pid=0 591s ok 27 /socket/credentials/tcp_server 591s # Supported on this OS: GCredentials:linux-ucred:pid=6341,uid=1000,gid=1000 591s ok 28 /socket/credentials/unix_socketpair 591s # End of credentials tests 591s # Start of accept tests 591s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 591s ok 29 /socket/accept/cancelled 591s # End of accept tests 591s # Start of connect tests 591s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 591s ok 30 /socket/connect/cancelled 591s # End of connect tests 591s # End of socket tests 591s ok - glib/socket.test 591s # Running test: glib/dataset.test 591s TAP version 14 591s # random seed: R02Sdfc68d42be91b52d2e5dad58ba078a5a 591s 1..15 591s # Start of quark tests 591s ok 1 /quark/basic 591s ok 2 /quark/string 591s # End of quark tests 591s # Start of dataset tests 591s ok 3 /dataset/basic 591s ok 4 /dataset/id 591s ok 5 /dataset/full 591s ok 6 /dataset/foreach 591s ok 7 /dataset/destroy 591s # End of dataset tests 591s # Start of datalist tests 591s ok 8 /datalist/id 591s ok 9 /datalist/recursive-clear 591s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 591s ok 10 /datalist/id-remove-multiple 591s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 591s ok 11 /datalist/id-remove-multiple-destroy-order 591s ok 12 /datalist/update-atomic 591s # Start of basic tests 591s ok 13 /datalist/basic/few 591s ok 14 /datalist/basic/many 591s # End of basic tests 591s # Start of id-remove-multiple tests 591s ok 15 /datalist/id-remove-multiple/resize 591s # End of id-remove-multiple tests 591s # End of datalist tests 591s ok - glib/dataset.test 591s # Running test: glib/simple-proxy.test 591s ok - glib/simple-proxy.test 591s # Running test: glib/gsocketclient-slow.test 591s TAP version 14 591s # random seed: R02S33c3fc272e674f9a3da8b48f07c4f3ff 591s 1..3 591s # Start of static-proxy tests 591s ok 1 /static-proxy/uri 591s ok 2 /static-proxy/socks 591s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 591s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 591s ok 3 /static-proxy/ignore 591s # End of static-proxy tests 591s TAP version 14 591s # random seed: R02Sef6897e388d5632a87587816654b60eb 591s 1..4 591s # Start of socket-client tests 591s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 591s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 591s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x56f72793d8e0 and GSocketClientAsyncConnectData 0x56f727938520 591s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 591s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 591s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x56f727941540 for GSocketClientAsyncConnectData 0x56f727938520 591s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 591s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 591s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 591s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 591s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 591s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 591s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x56f727941540 for GSocketClientAsyncConnectData 0x56f727938520 591s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 592s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 592s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 592s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 592s ok 1 /socket-client/connection-fail 592s # slow test /socket-client/connection-fail executed in 1.20 secs 592s # Start of happy-eyeballs tests 592s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x56f727940110 and GSocketClientAsyncConnectData 0x56f727941070 592s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 592s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 592s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x56f727944340 for GSocketClientAsyncConnectData 0x56f727941070 592s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 593s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 593s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 593s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 593s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 593s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 593s ok 2 /socket-client/happy-eyeballs/slow 593s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 593s # Start of cancellation tests 593s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x56f727940d50 and GSocketClientAsyncConnectData 0x56f7279445e0 593s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 593s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 593s ok 3 /socket-client/happy-eyeballs/cancellation/instant 593s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x56f727940030 and GSocketClientAsyncConnectData 0x56f727943fa0 593s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 593s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 593s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x56f727944ba0 for GSocketClientAsyncConnectData 0x56f727943fa0 593s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 593s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 593s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 593s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 593s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 593s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 593s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 593s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 593s # End of cancellation tests 593s # End of happy-eyeballs tests 593s # End of socket-client tests 593s ok - glib/gsocketclient-slow.test 593s # Running test: glib/asyncqueue.test 593s TAP version 14 593s # random seed: R02S82405188d3514014a67278f76589d56a 593s 1..7 593s # Start of asyncqueue tests 593s ok 1 /asyncqueue/basics 593s ok 2 /asyncqueue/sort 593s ok 3 /asyncqueue/destroy 593s ok 4 /asyncqueue/threads 594s # Executing: glib/asyncqueue.test 594s ok 5 /asyncqueue/timed 594s ok 6 /asyncqueue/remove 594s ok 7 /asyncqueue/push_front 594s # End of asyncqueue tests 594s ok - glib/asyncqueue.test 594s # Running test: glib/shell.test 594s TAP version 14 594s # random seed: R02Seeabe320772c193c3ee5b06738716922 594s 1..52 594s # Start of shell tests 594s # Start of cmdline tests 594s test cmdline: foo bar 594s ok 1 /shell/cmdline/0 594s test cmdline: foo 'bar' 594s ok 2 /shell/cmdline/1 594s test cmdline: foo "bar" 594s ok 3 /shell/cmdline/2 594s test cmdline: foo '' 'bar' 594s ok 4 /shell/cmdline/3 594s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 594s ok 5 /shell/cmdline/4 594s test cmdline: foo blah foo bar baz 594s ok 6 /shell/cmdline/5 594s test cmdline: foo ' spaces more spaces lots of spaces in this ' 594s ok 7 /shell/cmdline/6 594s test cmdline: foo \ 594s bar 594s ok 8 /shell/cmdline/7 594s test cmdline: foo '' '' 594s ok 9 /shell/cmdline/8 594s test cmdline: foo \" la la la 594s ok 10 /shell/cmdline/9 594s test cmdline: foo \ foo woo woo\ 594s ok 11 /shell/cmdline/10 594s test cmdline: foo "yada yada \$\"" 594s ok 12 /shell/cmdline/11 594s test cmdline: foo "c:\\" 594s ok 13 /shell/cmdline/12 594s test cmdline: foo # bla bla bla 594s bar 594s ok 14 /shell/cmdline/13 594s test cmdline: foo a#b 594s ok 15 /shell/cmdline/14 594s test cmdline: #foo 594s ok 16 /shell/cmdline/15 594s test cmdline: foo bar \ 594s ok 17 /shell/cmdline/16 594s test cmdline: foo 'bar baz 594s ok 18 /shell/cmdline/17 594s test cmdline: foo '"bar" baz 594s ok 19 /shell/cmdline/18 594s test cmdline: 594s ok 20 /shell/cmdline/19 594s test cmdline: 594s ok 21 /shell/cmdline/20 594s test cmdline: # foo bar 594s ok 22 /shell/cmdline/21 594s test cmdline: # 594s ok 23 /shell/cmdline/22 594s test cmdline: foo '/bar/summer'\''09 tours.pdf' 594s ok 24 /shell/cmdline/23 594s # End of cmdline tests 594s # Start of quote tests 594s ok 25 /shell/quote/0 594s ok 26 /shell/quote/1 594s ok 27 /shell/quote/2 594s ok 28 /shell/quote/3 594s ok 29 /shell/quote/4 594s ok 30 /shell/quote/5 594s ok 31 /shell/quote/6 594s # End of quote tests 594s # Start of unquote tests 594s ok 32 /shell/unquote/0 594s ok 33 /shell/unquote/1 594s ok 34 /shell/unquote/2 594s ok 35 /shell/unquote/3 594s ok 36 /shell/unquote/4 594s ok 37 /shell/unquote/5 594s ok 38 /shell/unquote/6 594s ok 39 /shell/unquote/7 594s ok 40 /shell/unquote/8 594s ok 41 /shell/unquote/9 594s ok 42 /shell/unquote/10 594s ok 43 /shell/unquote/11 594s ok 44 /shell/unquote/12 594s ok 45 /shell/unquote/13 594s ok 46 /shell/unquote/14 594s ok 47 /shell/unquote/15 594s ok 48 /shell/unquote/16 594s ok 49 /shell/unquote/17 594s ok 50 /shell/unquote/18 594s ok 51 /shell/unquote/19 594s ok 52 /shell/unquote/20 594s # End of unquote tests 594s # End of shell tests 594s ok - glib/shell.test 594s # Running test: glib/utf8-pointer.test 594s TAP version 14 594s # random seed: R02Sfaab03f2f346bc58c8e77bc374c2a61d 594s 1..3 594s # Start of utf8 tests 595s ok 1 /utf8/offsets 595s # slow test /utf8/offsets executed in 0.80 secs 595s ok 2 /utf8/lengths 595s ok 3 /utf8/find 595s # End of utf8 tests 595s ok - glib/utf8-pointer.test 595s # Running test: glib/gdbus-address-get-session.test 595s TAP version 14 595s # random seed: R02Sbd510bec007ebb21a5739ddf673e7dfb 595s 1..2 595s # Start of gdbus tests 595s ok 1 /gdbus/x11-autolaunch 595s ok 2 /gdbus/xdg-runtime 595s # End of gdbus tests 595s ok - glib/gdbus-address-get-session.test 595s # Running test: glib/portal-support-flatpak-gsettings-only.test 595s TAP version 14 595s ok - glib/portal-support-flatpak-gsettings-only.test 595s # Running test: glib/rcbox.test 595s ok - glib/rcbox.test 595s # Running test: glib/performance-threaded.test 595s # random seed: R02S481158d41201aca7ad0e28e5bb4b9a95 595s 1..1 595s # Start of portal-support tests 595s # Start of flatpak tests 595s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/home 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/cache 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/system-config2 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/config 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/system-data2 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/data 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/state 595s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/runtime 595s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_AO82E3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 595s ok 1 /portal-support/flatpak/gsettings 595s # End of flatpak tests 595s # End of portal-support tests 595s TAP version 14 595s # random seed: R02Sa46a13c14038c12869a36c021a256c52 595s 1..8 595s # Start of rcbox tests 595s ok 1 /rcbox/new 595s # global_point = 0x5e6c819c0710 595s ok 2 /rcbox/release-full 595s # global_point_a = 0x5e6c819c0710 595s # global_point_b = 0x5e6c819c07e0 595s ok 3 /rcbox/dup 595s ok 4 /rcbox/alignment 595s # End of rcbox tests 595s # Start of atomic-rcbox tests 595s ok 5 /atomic-rcbox/new 595s # global_point = 0x5e6c819c07e0 595s ok 6 /atomic-rcbox/release-full 595s # global_point_a = 0x5e6c819c07e0 595s # global_point_b = 0x5e6c819c0710 595s ok 7 /atomic-rcbox/dup 595s ok 8 /atomic-rcbox/alignment 595s # End of atomic-rcbox tests 595s Running test "liststore-is-a" 596s 33980 runs, min/avg/max = 0.028/0.029/0.185 ms 596s Running test "liststore-interface-peek" 597s 57862 runs, min/avg/max = 0.016/0.017/0.260 ms 597s Running test "liststore-interface-peek-same" 598s ok - glib/performance-threaded.test 598s 57180 runs, min/avg/max = 0.017/0.017/0.525 ms 598s # Running test: glib/memory-monitor-poll.test 598s TAP version 14 598s # random seed: R02Sdcce69d735085f7d9cd5658cf10cdc2b 598s 1..4 598s # Start of memory-monitor-poll tests 598s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 598s ok 1 /memory-monitor-poll/dup-default 598s # GLib-GIO-DEBUG: memory free ratio 0.190000 598s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 598s ok 2 /memory-monitor-poll/critical-event 598s # GLib-GIO-DEBUG: memory free ratio 0.290000 598s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 598s ok 3 /memory-monitor-poll/medium-event 598s # GLib-GIO-DEBUG: memory free ratio 0.390000 598s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 598s ok 4 /memory-monitor-poll/low-event 598s # End of memory-monitor-poll tests 598s ok - glib/memory-monitor-poll.test 598s # Running test: glib/mimeapps.test 598s TAP version 14 598s # random seed: R02S9cf856e979867f6944dba5cc78b568d9 598s 1..13 598s # Start of appinfo tests 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 598s ok 1 /appinfo/all 598s # Start of mime tests 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/all/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config 598s ok 2 /appinfo/mime/api 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config 598s ok 3 /appinfo/mime/default 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config 598s ok 4 /appinfo/mime/file 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/config 598s ok 5 /appinfo/mime/scheme-handler 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config 598s ok 6 /appinfo/mime/default-last-used 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/config 598s ok 7 /appinfo/mime/ignore-nonexisting 598s # End of mime tests 598s # Start of mime-symlinked tests 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/system-data1/applications' 598s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/system-data1/applications/mimeapps.list.c' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime/ignore-nonexisting/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config 598s ok 8 /appinfo/mime-symlinked/api 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/system-data1/applications/mimeapps.list.c' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/api/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config 598s ok 9 /appinfo/mime-symlinked/default 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/system-data1/applications/mimeapps.list.c' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config 598s ok 10 /appinfo/mime-symlinked/file 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications/mimeapps.list.c' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/file/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/config 598s ok 11 /appinfo/mime-symlinked/scheme-handler 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/state 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications/mimeapps.list.c' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/scheme-handler/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config 598s ok 12 /appinfo/mime-symlinked/default-last-used 598s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/home 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/cache 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data2 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/state 598s ok - glib/mimeapps.test 598s # Running test: glib/rec-mutex.test 598s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/runtime 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list.c' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 598s # removing '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 598s # creating '/tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 598s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/default-last-used/.dirs/config to /tmp/test_mimeapps_LCAVE3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 598s ok 13 /appinfo/mime-symlinked/ignore-nonexisting 598s # End of mime-symlinked tests 598s # End of appinfo tests 598s TAP version 14 598s # random seed: R02Sc745b4ab234e81ca9ca055b9645de87c 598s 1..29 598s # Start of thread tests 598s ok 1 /thread/rec-mutex1 598s ok 2 /thread/rec-mutex2 598s ok 3 /thread/rec-mutex3 598s ok 4 /thread/rec-mutex4 598s # Start of rec-mutex tests 598s # Start of perf tests 598s # Start of uncontended tests 598s # max perf: inf mips 598s ok 5 /thread/rec-mutex/perf/uncontended/depth1 598s # max perf: inf mips 598s ok 6 /thread/rec-mutex/perf/uncontended/depth2 598s # max perf: inf mips 598s ok 7 /thread/rec-mutex/perf/uncontended/depth3 598s # max perf: inf mips 598s ok 8 /thread/rec-mutex/perf/uncontended/depth4 598s # max perf: inf mips 598s ok 9 /thread/rec-mutex/perf/uncontended/depth5 598s # End of uncontended tests 598s # Start of contended1 tests 598s # max perf: inf mips 598s ok 10 /thread/rec-mutex/perf/contended1/depth1 598s # max perf: inf mips 598s ok 11 /thread/rec-mutex/perf/contended1/depth2 598s # max perf: inf mips 598s ok 12 /thread/rec-mutex/perf/contended1/depth3 598s # max perf: inf mips 598s ok 13 /thread/rec-mutex/perf/contended1/depth4 598s # max perf: 2.000000 mips 598s ok 14 /thread/rec-mutex/perf/contended1/depth5 598s # End of contended1 tests 598s # Start of contended2 tests 598s # max perf: inf mips 598s ok 15 /thread/rec-mutex/perf/contended2/depth1 598s # max perf: inf mips 598s ok 16 /thread/rec-mutex/perf/contended2/depth2 598s ok - glib/rec-mutex.test 598s # max perf: 3.000000 mips 598s ok 17 /thread/rec-mutex/perf/contended2/depth3 598s # max perf: inf mips 598s ok 18 /thread/rec-mutex/perf/contended2/depth4 598s # max perf: inf mips 598s ok 19 /thread/rec-mutex/perf/contended2/depth5 598s # End of contended2 tests 598s # Start of contended3 tests 598s # max perf: inf mips 598s ok 20 /thread/rec-mutex/perf/contended3/depth1 598s # max perf: 4.000000 mips 598s ok 21 /thread/rec-mutex/perf/contended3/depth2 598s # max perf: 4.000000 mips 598s ok 22 /thread/rec-mutex/perf/contended3/depth3 598s # max perf: 0.250000 mips 598s ok 23 /thread/rec-mutex/perf/contended3/depth4 598s # max perf: inf mips 598s ok 24 /thread/rec-mutex/perf/contended3/depth5 598s # End of contended3 tests 598s # Start of contended4 tests 598s # max perf: 2.500000 mips 598s ok 25 /thread/rec-mutex/perf/contended4/depth1 598s # max perf: 5.000000 mips 598s ok 26 /thread/rec-mutex/perf/contended4/depth2 598s # max perf: 5.000000 mips 598s ok 27 /thread/rec-mutex/perf/contended4/depth3 598s # max perf: inf mips 598s ok 28 /thread/rec-mutex/perf/contended4/depth4 598s # max perf: inf mips 598s ok 29 /thread/rec-mutex/perf/contended4/depth5 598s # End of contended4 tests 598s # End of perf tests 598s # End of rec-mutex tests 598s # End of thread tests 598s # Running test: glib/socket-address.test 598s ok - glib/socket-address.test 598s # Running test: glib/markup-escape.test 598s ok - glib/markup-escape.test 598s # Running test: glib/timeout.test 598s TAP version 14 598s # random seed: R02S59daf7597e24e8892a8bd7926a8ce265 598s 1..2 598s # Start of socket tests 598s # Start of address tests 598s # Start of unix tests 598s ok 1 /socket/address/unix/construct 598s ok 2 /socket/address/unix/to-string 598s # End of unix tests 598s # End of address tests 598s # End of socket tests 598s TAP version 14 598s # random seed: R02S1ea09bfb900b17fd3b8498159eac12c3 598s 1..41 598s # Start of markup tests 598s ok 1 /markup/format 598s # Start of escape-text tests 598s ok 2 /markup/escape-text/0 598s ok 3 /markup/escape-text/1 598s ok 4 /markup/escape-text/2 598s ok 5 /markup/escape-text/3 598s ok 6 /markup/escape-text/4 598s ok 7 /markup/escape-text/5 598s ok 8 /markup/escape-text/6 598s ok 9 /markup/escape-text/7 598s ok 10 /markup/escape-text/8 598s ok 11 /markup/escape-text/9 598s ok 12 /markup/escape-text/10 598s ok 13 /markup/escape-text/11 598s ok 14 /markup/escape-text/12 598s ok 15 /markup/escape-text/13 598s ok 16 /markup/escape-text/14 598s ok 17 /markup/escape-text/15 598s ok 18 /markup/escape-text/16 598s ok 19 /markup/escape-text/17 598s ok 20 /markup/escape-text/18 598s ok 21 /markup/escape-text/19 598s ok 22 /markup/escape-text/20 598s ok 23 /markup/escape-text/21 598s ok 24 /markup/escape-text/22 598s # End of escape-text tests 598s # Start of escape-unichar tests 598s ok 25 /markup/escape-unichar/0 598s ok 26 /markup/escape-unichar/1 598s ok 27 /markup/escape-unichar/2 598s ok 28 /markup/escape-unichar/3 598s ok 29 /markup/escape-unichar/4 598s ok 30 /markup/escape-unichar/5 598s ok 31 /markup/escape-unichar/6 598s ok 32 /markup/escape-unichar/7 598s ok 33 /markup/escape-unichar/8 598s ok 34 /markup/escape-unichar/9 598s ok 35 /markup/escape-unichar/10 598s ok 36 /markup/escape-unichar/11 598s ok 37 /markup/escape-unichar/12 598s ok 38 /markup/escape-unichar/13 598s ok 39 /markup/escape-unichar/14 598s ok 40 /markup/escape-unichar/15 598s ok 41 /markup/escape-unichar/16 598s # End of escape-unichar tests 598s # End of markup tests 598s TAP version 14 598s # random seed: R02S78092aa412791a4be5f4e5eb3d6a2f21 598s 1..5 598s # Start of timeout tests 598s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 599s # Executing: glib/timeout.test 600s ok 1 /timeout/seconds 600s # slow test /timeout/seconds executed in 2.10 secs 602s ok 2 /timeout/seconds-once 602s # slow test /timeout/seconds-once executed in 2.10 secs 602s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 604s # Executing: glib/timeout.test 604s ok 3 /timeout/weeks-overflow 604s # slow test /timeout/weeks-overflow executed in 2.10 secs 604s ok 4 /timeout/far-future-ready-time 609s # Executing: glib/timeout.test 614s # Executing: glib/timeout.test 615s ok - glib/timeout.test 615s ok 5 /timeout/rounding 615s # slow test /timeout/rounding executed in 10.67 secs 615s # End of timeout tests 615s # Running test: glib/inet-address.test 615s ok - glib/inet-address.test 615s TAP version 14 615s # random seed: R02Sd26beacfa9fd87d0c642c057d959f116 615s 1..11 615s # Start of inet-address tests 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 615s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 615s ok 1 /inet-address/parse 615s ok 2 /inet-address/any 615s ok 3 /inet-address/loopback 615s ok 4 /inet-address/bytes 615s ok 5 /inet-address/property 615s # End of inet-address tests 615s # Start of socket-address tests 615s ok 6 /socket-address/basic 615s ok 7 /socket-address/to-string 615s # End of socket-address tests 615s # Start of address-mask tests 615s ok 8 /address-mask/parse 615s ok 9 /address-mask/property 615s ok 10 /address-mask/equal 615s ok 11 /address-mask/match 615s # End of address-mask tests 615s # Running test: glib/portal-support-flatpak-full.test 615s TAP version 14 615s # random seed: R02S1effc320f2c31ab35e20890227110e75 615s 1..1 615s # Start of portal-support tests 615s # Start of flatpak tests 615s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/home 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/cache 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/system-config2 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/config 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/system-data2 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/data 615s ok - glib/portal-support-flatpak-full.test 615s # Running test: glib/node.test 615s ok - glib/node.test 615s # Running test: glib/timer.test 615s ok - glib/timer.test 615s # Running test: glib/resources.test 615s ok - glib/resources.test 615s # Running test: glib/codegen.py.test 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/state 615s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/runtime 615s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_GGUNE3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 615s ok 1 /portal-support/flatpak/full 615s # End of flatpak tests 615s # End of portal-support tests 615s TAP version 14 615s # random seed: R02S3c1a681cf30dd34582c79fd1f81363f3 615s 1..6 615s # Start of node tests 615s ok 1 /node/allocation 615s ok 2 /node/construction 615s ok 3 /node/traversal 615s ok 4 /node/misc 615s ok 5 /node/unlink 615s ok 6 /node/copy 615s # End of node tests 615s TAP version 14 615s # random seed: R02S3f61a486f940f46994f9b648d11d7b3c 615s 1..10 615s # Start of timer tests 615s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 615s ok 2 /timer/stop 615s ok 3 /timer/continue 615s ok 4 /timer/reset 615s ok 5 /timer/is_active 615s # End of timer tests 615s # Start of timeval tests 615s ok 6 /timeval/add 615s ok 7 /timeval/from-iso8601 615s ok 8 /timeval/to-iso8601 615s # Start of to-iso8601 tests 615s ok 9 /timeval/to-iso8601/overflow 615s # End of to-iso8601 tests 615s # End of timeval tests 615s # Start of usleep tests 615s ok 10 /usleep/with-zero-wait 615s # End of usleep tests 615s TAP version 14 615s # random seed: R02S4a133e5f187f2cc971f1d2652e93712a 615s 1..19 615s # Start of resource tests 615s ok 1 /resource/file 615s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 615s ok 2 /resource/file-path 615s ok 3 /resource/data 615s ok 4 /resource/data_unaligned 615s ok 5 /resource/data-corrupt 615s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 615s ok 6 /resource/data-corrupt-compression 615s ok 7 /resource/data-empty 615s ok 8 /resource/registered 615s ok 9 /resource/manual 615s ok 10 /resource/manual2 615s ok 11 /resource/automatic 615s ok 12 /resource/module 615s ok 13 /resource/binary-linked 615s ok 14 /resource/64k 615s GLib-GIO-Message: 23:22:56.050: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 615s GLib-GIO-Message: 23:22:56.050: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 615s GLib-GIO-Message: 23:22:56.050: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 615s ok 15 /resource/overlay 615s ok 16 /resource/digits 615s ok 17 /resource/has-children 615s # Start of uri tests 615s ok 18 /resource/uri/query-info 615s ok 19 /resource/uri/file 615s # End of uri tests 615s # End of resource tests 615s TAP version 13 615s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmpwhk9l277 615s # /tmp/tmpwhk9l277/tmp5_t8ggna.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwhk9l277/tmp5_t8ggna.xml', '--output', '-', '--header'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifndef __STDOUT__ 615s # #define __STDOUT__ 615s # 615s # #include 615s # 615s # G_BEGIN_DECLS 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # /* Declarations for org.project.UsefulInterface */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 615s # 615s # struct _OrgProjectUsefulInterface; 615s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 615s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 615s # 615s # struct _OrgProjectUsefulInterfaceIface 615s # { 615s # GTypeInterface parent_iface; 615s # 615s # gboolean (*handle_useful_method) ( 615s # OrgProjectUsefulInterface *object, 615s # GDBusMethodInvocation *invocation); 615s # 615s # }; 615s # 615s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 615s # 615s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 615s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 615s # 615s # 615s # /* D-Bus method call completion functions: */ 615s # void org_project_useful_interface_complete_useful_method ( 615s # OrgProjectUsefulInterface *object, 615s # GDBusMethodInvocation *invocation); 615s # 615s # 615s # 615s # /* D-Bus method calls: */ 615s # void org_project_useful_interface_call_useful_method ( 615s # OrgProjectUsefulInterface *proxy, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # 615s # gboolean org_project_useful_interface_call_useful_method_finish ( 615s # OrgProjectUsefulInterface *proxy, 615s # GAsyncResult *res, 615s # GError **error); 615s # 615s # gboolean org_project_useful_interface_call_useful_method_sync ( 615s # OrgProjectUsefulInterface *proxy, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # 615s # 615s # /* ---- */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 615s # 615s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 615s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 615s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 615s # 615s # struct _OrgProjectUsefulInterfaceProxy 615s # { 615s # /*< private >*/ 615s # GDBusProxy parent_instance; 615s # OrgProjectUsefulInterfaceProxyPrivate *priv; 615s # }; 615s # 615s # struct _OrgProjectUsefulInterfaceProxyClass 615s # { 615s # GDBusProxyClass parent_class; 615s # }; 615s # 615s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 615s # 615s # #if GLIB_CHECK_VERSION(2, 44, 0) 615s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 615s # #endif 615s # 615s # void org_project_useful_interface_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # void org_project_useful_interface_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # 615s # /* ---- */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 615s # 615s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 615s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 615s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 615s # 615s # struct _OrgProjectUsefulInterfaceSkeleton 615s # { 615s # /*< private >*/ 615s # GDBusInterfaceSkeleton parent_instance; 615s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 615s # }; 615s # 615s # struct _OrgProjectUsefulInterfaceSkeletonClass 615s # { 615s # GDBusInterfaceSkeletonClass parent_class; 615s # }; 615s # 615s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 615s # 615s # #if GLIB_CHECK_VERSION(2, 44, 0) 615s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 615s # #endif 615s # 615s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 615s # 615s # 615s # G_END_DECLS 615s # 615s # #endif /* __STDOUT__ */ 615s # Error: 615s # 615s # /tmp/tmpwhk9l277/tmpbftpjw_5.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwhk9l277/tmpbftpjw_5.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifndef __STDOUT__ 615s # #define __STDOUT__ 615s # 615s # #include 615s # 615s # G_BEGIN_DECLS 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # /* Declarations for org.project.UsefulInterface */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 615s # 615s # struct _OrgProjectUsefulInterface; 615s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 615s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 615s # 615s # struct _OrgProjectUsefulInterfaceIface 615s # { 615s # GTypeInterface parent_iface; 615s # 615s # gboolean (*handle_useful_method) ( 615s # OrgProjectUsefulInterface *object, 615s # GDBusMethodInvocation *invocation); 615s # 615s # }; 615s # 615s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 615s # 615s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 615s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 615s # 615s # 615s # /* D-Bus method call completion functions: */ 615s # void org_project_useful_interface_complete_useful_method ( 615s # OrgProjectUsefulInterface *object, 615s # GDBusMethodInvocation *invocation); 615s # 615s # 615s # 615s # /* D-Bus method calls: */ 615s # void org_project_useful_interface_call_useful_method ( 615s # OrgProjectUsefulInterface *proxy, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # 615s # gboolean org_project_useful_interface_call_useful_method_finish ( 615s # OrgProjectUsefulInterface *proxy, 615s # GAsyncResult *res, 615s # GError **error); 615s # 615s # gboolean org_project_useful_interface_call_useful_method_sync ( 615s # OrgProjectUsefulInterface *proxy, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # 615s # 615s # /* ---- */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 615s # 615s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 615s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 615s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 615s # 615s # struct _OrgProjectUsefulInterfaceProxy 615s # { 615s # /*< private >*/ 615s # GDBusProxy parent_instance; 615s # OrgProjectUsefulInterfaceProxyPrivate *priv; 615s # }; 615s # 615s # struct _OrgProjectUsefulInterfaceProxyClass 615s # { 615s # GDBusProxyClass parent_class; 615s # }; 615s # 615s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 615s # 615s # #if GLIB_CHECK_VERSION(2, 44, 0) 615s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 615s # #endif 615s # 615s # void org_project_useful_interface_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # void org_project_useful_interface_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # 615s # /* ---- */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 615s # 615s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 615s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 615s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 615s # 615s # struct _OrgProjectUsefulInterfaceSkeleton 615s # { 615s # /*< private >*/ 615s # GDBusInterfaceSkeleton parent_instance; 615s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 615s # }; 615s # 615s # struct _OrgProjectUsefulInterfaceSkeletonClass 615s # { 615s # GDBusInterfaceSkeletonClass parent_class; 615s # }; 615s # 615s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 615s # 615s # #if GLIB_CHECK_VERSION(2, 44, 0) 615s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 615s # #endif 615s # 615s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 615s # 615s # 615s # G_END_DECLS 615s # 615s # #endif /* __STDOUT__ */ 615s # Error: 615s # 615s # /tmp/tmpwhk9l277/tmpf7owj9zw.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwhk9l277/tmpf7owj9zw.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifndef __STDOUT__ 615s # #define __STDOUT__ 615s # 615s # #include 615s # 615s # G_BEGIN_DECLS 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # /* Declarations for org.project.UsefulInterface */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 615s # 615s # struct _OrgProjectUsefulInterface; 615s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 615s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 615s # 615s # struct _OrgProjectUsefulInterfaceIface 615s # { 615s # GTypeInterface parent_iface; 615s # 615s # gboolean (*handle_useful_method) ( 615s # OrgProjectUsefulInterface *object, 615s # GDBusMethodInvocation *invocation); 615s # 615s # }; 615s # 615s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 615s # 615s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 615s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 615s # 615s # 615s # /* D-Bus method call completion functions: */ 615s # void org_project_useful_interface_complete_useful_method ( 615s # OrgProjectUsefulInterface *object, 615s # GDBusMethodInvocation *invocation); 615s # 615s # 615s # 615s # /* D-Bus method calls: */ 615s # void org_project_useful_interface_call_useful_method ( 615s # OrgProjectUsefulInterface *proxy, 615s # GDBusCallFlags call_flags, 615s # gint timeout_msec, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # 615s # gboolean org_project_useful_interface_call_useful_method_finish ( 615s # OrgProjectUsefulInterface *proxy, 615s # GAsyncResult *res, 615s # GError **error); 615s # 615s # gboolean org_project_useful_interface_call_useful_method_sync ( 615s # OrgProjectUsefulInterface *proxy, 615s # GDBusCallFlags call_flags, 615s # gint timeout_msec, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # 615s # 615s # /* ---- */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 615s # 615s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 615s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 615s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 615s # 615s # struct _OrgProjectUsefulInterfaceProxy 615s # { 615s # /*< private >*/ 615s # GDBusProxy parent_instance; 615s # OrgProjectUsefulInterfaceProxyPrivate *priv; 615s # }; 615s # 615s # struct _OrgProjectUsefulInterfaceProxyClass 615s # { 615s # GDBusProxyClass parent_class; 615s # }; 615s # 615s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 615s # 615s # #if GLIB_CHECK_VERSION(2, 44, 0) 615s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 615s # #endif 615s # 615s # void org_project_useful_interface_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # void org_project_useful_interface_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error); 615s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error); 615s # 615s # 615s # /* ---- */ 615s # 615s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 615s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 615s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 615s # 615s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 615s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 615s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 615s # 615s # struct _OrgProjectUsefulInterfaceSkeleton 615s # { 615s # /*< private >*/ 615s # GDBusInterfaceSkeleton parent_instance; 615s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 615s # }; 615s # 615s # struct _OrgProjectUsefulInterfaceSkeletonClass 615s # { 615s # GDBusInterfaceSkeletonClass parent_class; 615s # }; 615s # 615s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 615s # 615s # #if GLIB_CHECK_VERSION(2, 44, 0) 615s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 615s # #endif 615s # 615s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 615s # 615s # 615s # G_END_DECLS 615s # 615s # #endif /* __STDOUT__ */ 615s # Error: 615s ok 2 __main__.TestCodegen.test_dbus_types 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmpskz2tdrs 615s # /tmp/tmpskz2tdrs/tmpqwknqkqa.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpqwknqkqa.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 615s # /tmp/tmpskz2tdrs/tmp98azbrmu.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmp98azbrmu.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 615s # /tmp/tmpskz2tdrs/tmpqtwn2cfd.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpqtwn2cfd.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 615s # /tmp/tmpskz2tdrs/tmpdydpypc_.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpdydpypc_.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 615s # /tmp/tmpskz2tdrs/tmpmlkgmfen.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpmlkgmfen.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 615s # /tmp/tmpskz2tdrs/tmpn32brr9j.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpn32brr9j.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 615s # /tmp/tmpskz2tdrs/tmpgi3gptbk.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpgi3gptbk.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 615s # /tmp/tmpskz2tdrs/tmpto_ju9xf.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpto_ju9xf.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 615s # /tmp/tmpskz2tdrs/tmpl63dfjs_.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpl63dfjs_.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 615s # /tmp/tmpskz2tdrs/tmp4ee27nye.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmp4ee27nye.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: D-Bus maximum signature length of 255 exceeded. 615s # /tmp/tmpskz2tdrs/tmp09ormpoi.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmp09ormpoi.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: D-Bus maximum signature length of 255 exceeded. 615s # /tmp/tmpskz2tdrs/tmp8tgq04li.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmp8tgq04li.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 615s # /tmp/tmpskz2tdrs/tmptnlh7ag5.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmptnlh7ag5.xml', '--output', '-', '--body'] 615s # Return code: 1 615s # Output: 615s # 615s # Error: 615s # ERROR: D-Bus maximum signature length of 255 exceeded. 615s # /tmp/tmpskz2tdrs/tmper61n86s.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmper61n86s.xml', '--output', '-', '--body'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifdef HAVE_CONFIG_H 615s # # include "config.h" 615s # #endif 615s # 615s # #include 615s # #ifdef G_OS_UNIX 615s # # include 615s # #endif 615s # 615s # #ifdef G_ENABLE_DEBUG 615s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 615s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 615s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 615s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 615s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 615s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 615s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 615s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 615s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 615s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 615s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 615s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 615s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 615s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 615s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 615s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 615s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 615s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 615s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 615s # #else /* !G_ENABLE_DEBUG */ 615s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 615s # * Do not access GValues directly in your code. Instead, use the 615s # * g_value_get_*() functions 615s # */ 615s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 615s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 615s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 615s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 615s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 615s # #endif /* !G_ENABLE_DEBUG */ 615s # 615s # typedef struct 615s # { 615s # GDBusArgInfo parent_struct; 615s # gboolean use_gvariant; 615s # } _ExtendedGDBusArgInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusMethodInfo parent_struct; 615s # const gchar *signal_name; 615s # gboolean pass_fdlist; 615s # } _ExtendedGDBusMethodInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusSignalInfo parent_struct; 615s # const gchar *signal_name; 615s # } _ExtendedGDBusSignalInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusPropertyInfo parent_struct; 615s # const gchar *hyphen_name; 615s # guint use_gvariant : 1; 615s # guint emits_changed_signal : 1; 615s # } _ExtendedGDBusPropertyInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusInterfaceInfo parent_struct; 615s # const gchar *hyphen_name; 615s # } _ExtendedGDBusInterfaceInfo; 615s # 615s # typedef struct 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # guint prop_id; 615s # GValue orig_value; /* the value before the change */ 615s # } ChangedProperty; 615s # 615s # static void 615s # _changed_property_free (ChangedProperty *data) 615s # { 615s # g_value_unset (&data->orig_value); 615s # g_free (data); 615s # } 615s # 615s # static gboolean 615s # _g_strv_equal0 (gchar **a, gchar **b) 615s # { 615s # gboolean ret = FALSE; 615s # guint n; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # if (g_strv_length (a) != g_strv_length (b)) 615s # goto out; 615s # for (n = 0; a[n] != NULL; n++) 615s # if (g_strcmp0 (a[n], b[n]) != 0) 615s # goto out; 615s # ret = TRUE; 615s # out: 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _g_variant_equal0 (GVariant *a, GVariant *b) 615s # { 615s # gboolean ret = FALSE; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # ret = g_variant_equal (a, b); 615s # out: 615s # return ret; 615s # } 615s # 615s # G_GNUC_UNUSED static gboolean 615s # _g_value_equal (const GValue *a, const GValue *b) 615s # { 615s # gboolean ret = FALSE; 615s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 615s # switch (G_VALUE_TYPE (a)) 615s # { 615s # case G_TYPE_BOOLEAN: 615s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 615s # break; 615s # case G_TYPE_UCHAR: 615s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 615s # break; 615s # case G_TYPE_INT: 615s # ret = (g_value_get_int (a) == g_value_get_int (b)); 615s # break; 615s # case G_TYPE_UINT: 615s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 615s # break; 615s # case G_TYPE_INT64: 615s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 615s # break; 615s # case G_TYPE_UINT64: 615s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 615s # break; 615s # case G_TYPE_DOUBLE: 615s # { 615s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 615s # gdouble da = g_value_get_double (a); 615s # gdouble db = g_value_get_double (b); 615s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 615s # } 615s # break; 615s # case G_TYPE_STRING: 615s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 615s # break; 615s # case G_TYPE_VARIANT: 615s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 615s # break; 615s # default: 615s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 615s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 615s # else 615s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 615s # break; 615s # } 615s # return ret; 615s # } 615s # 615s # /* ------------------------------------------------------------------------ 615s # * Code for interface GoodTypes 615s # * ------------------------------------------------------------------------ 615s # */ 615s # 615s # /** 615s # * SECTION:GoodTypes 615s # * @title: GoodTypes 615s # * @short_description: Generated C code for the GoodTypes D-Bus interface 615s # * 615s # * This section contains code for working with the GoodTypes D-Bus interface in C. 615s # */ 615s # 615s # /* ---- Introspection data for GoodTypes ---- */ 615s # 615s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 615s # { 615s # { 615s # -1, 615s # (gchar *) "GoodPropertyType", 615s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 615s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 615s # NULL 615s # }, 615s # "good-property-type", 615s # FALSE, 615s # TRUE 615s # }; 615s # 615s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 615s # { 615s # &_good_types_property_info_good_property_type.parent_struct, 615s # NULL 615s # }; 615s # 615s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 615s # { 615s # { 615s # -1, 615s # (gchar *) "GoodTypes", 615s # NULL, 615s # NULL, 615s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 615s # NULL 615s # }, 615s # "good-types", 615s # }; 615s # 615s # 615s # /** 615s # * good_types_interface_info: 615s # * 615s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 615s # * 615s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 615s # */ 615s # GDBusInterfaceInfo * 615s # good_types_interface_info (void) 615s # { 615s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 615s # } 615s # 615s # /** 615s # * good_types_override_properties: 615s # * @klass: The class structure for a #GObject derived class. 615s # * @property_id_begin: The property id to assign to the first overridden property. 615s # * 615s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 615s # * The properties are overridden in the order they are defined. 615s # * 615s # * Returns: The last property id. 615s # */ 615s # guint 615s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 615s # { 615s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 615s # return property_id_begin - 1; 615s # } 615s # 615s # 615s # 615s # /** 615s # * GoodTypes: 615s # * 615s # * Abstract interface type for the D-Bus interface GoodTypes. 615s # */ 615s # 615s # /** 615s # * GoodTypesIface: 615s # * @parent_iface: The parent interface. 615s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 615s # * 615s # * Virtual table for the D-Bus interface GoodTypes. 615s # */ 615s # 615s # typedef GoodTypesIface GoodTypesInterface; 615s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 615s # 615s # static void 615s # good_types_default_init (GoodTypesIface *iface) 615s # { 615s # /* GObject properties for D-Bus properties: */ 615s # /** 615s # * GoodTypes:good-property-type: 615s # * 615s # * Represents the D-Bus property "GoodPropertyType". 615s # * 615s # * 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. 615s # */ 615s # g_object_interface_install_property (iface, 615s # 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)); 615s # } 615s # 615s # /** 615s # * good_types_get_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * 615s # * Gets the value of the "GoodPropertyType" D-Bus property. 615s # * 615s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 615s # * 615s # * 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. 615s # * 615s # * 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. 615s # */ 615s # GVariant * 615s # good_types_get_good_property_type (GoodTypes *object) 615s # { 615s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 615s # 615s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 615s # } 615s # 615s # /** 615s # * good_types_dup_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * 615s # * Gets a copy of the "GoodPropertyType" D-Bus property. 615s # * 615s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 615s # * 615s # * 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(). 615s # */ 615s # GVariant * 615s # good_types_dup_good_property_type (GoodTypes *object) 615s # { 615s # GVariant *value; 615s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 615s # return value; 615s # } 615s # 615s # /** 615s # * good_types_set_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * @value: The value to set. 615s # * 615s # * Sets the "GoodPropertyType" D-Bus property to @value. 615s # * 615s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 615s # */ 615s # void 615s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 615s # { 615s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * GoodTypesProxy: 615s # * 615s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * GoodTypesProxyClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for GoodTypesProxy. 615s # */ 615s # 615s # struct _GoodTypesProxyPrivate 615s # { 615s # GData *qdata; 615s # }; 615s # 615s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 615s # G_ADD_PRIVATE (GoodTypesProxy) 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 615s # 615s # #endif 615s # static void 615s # good_types_proxy_finalize (GObject *object) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 615s # g_datalist_clear (&proxy->priv->qdata); 615s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # good_types_proxy_get_property (GObject *object, 615s # guint prop_id, 615s # GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GVariant *variant; 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 615s # if (info->use_gvariant) 615s # { 615s # g_value_set_variant (value, variant); 615s # } 615s # else 615s # { 615s # if (variant != NULL) 615s # g_dbus_gvariant_to_gvalue (variant, value); 615s # } 615s # if (variant != NULL) 615s # g_variant_unref (variant); 615s # } 615s # 615s # static void 615s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 615s # GAsyncResult *res, 615s # gpointer user_data) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info = user_data; 615s # GError *error; 615s # GVariant *_ret; 615s # error = NULL; 615s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 615s # if (!_ret) 615s # { 615s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 615s # info->parent_struct.name, 615s # error->message, g_quark_to_string (error->domain), error->code); 615s # g_error_free (error); 615s # } 615s # else 615s # { 615s # g_variant_unref (_ret); 615s # } 615s # } 615s # 615s # static void 615s # good_types_proxy_set_property (GObject *object, 615s # guint prop_id, 615s # const GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GVariant *variant; 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_dbus_proxy_call (G_DBUS_PROXY (object), 615s # "org.freedesktop.DBus.Properties.Set", 615s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 615s # g_variant_unref (variant); 615s # } 615s # 615s # static void 615s # good_types_proxy_g_signal (GDBusProxy *proxy, 615s # const gchar *sender_name G_GNUC_UNUSED, 615s # const gchar *signal_name, 615s # GVariant *parameters) 615s # { 615s # _ExtendedGDBusSignalInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # gsize n; 615s # guint signal_id; 615s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 615s # if (info == NULL) 615s # return; 615s # num_params = g_variant_n_children (parameters); 615s # paramv = g_new0 (GValue, num_params + 1); 615s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 615s # g_value_set_object (¶mv[0], proxy); 615s # g_variant_iter_init (&iter, parameters); 615s # n = 1; 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 615s # g_signal_emitv (paramv, signal_id, 0, NULL); 615s # for (n = 0; n < num_params + 1; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static void 615s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 615s # GVariant *changed_properties, 615s # const gchar *const *invalidated_properties) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 615s # guint n; 615s # const gchar *key; 615s # GVariantIter *iter; 615s # _ExtendedGDBusPropertyInfo *info; 615s # g_variant_get (changed_properties, "a{sv}", &iter); 615s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 615s # g_datalist_remove_data (&proxy->priv->qdata, key); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # g_variant_iter_free (iter); 615s # for (n = 0; invalidated_properties[n] != NULL; n++) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 615s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # } 615s # 615s # static GVariant * 615s # good_types_proxy_get_good_property_type (GoodTypes *object) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 615s # GVariant *variant; 615s # GVariant *value = NULL; 615s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 615s # value = variant; 615s # if (variant != NULL) 615s # g_variant_unref (variant); 615s # return value; 615s # } 615s # 615s # static void 615s # good_types_proxy_init (GoodTypesProxy *proxy) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # proxy->priv = good_types_proxy_get_instance_private (proxy); 615s # #else 615s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 615s # #endif 615s # 615s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 615s # } 615s # 615s # static void 615s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusProxyClass *proxy_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = good_types_proxy_finalize; 615s # gobject_class->get_property = good_types_proxy_get_property; 615s # gobject_class->set_property = good_types_proxy_set_property; 615s # 615s # proxy_class = G_DBUS_PROXY_CLASS (klass); 615s # proxy_class->g_signal = good_types_proxy_g_signal; 615s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 615s # 615s # good_types_override_properties (gobject_class, 1); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # good_types_proxy_iface_init (GoodTypesIface *iface) 615s # { 615s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 615s # * 615s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # good_types_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with good_types_proxy_new(). 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_sync: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See good_types_proxy_new() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /** 615s # * good_types_proxy_new_for_bus: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 615s # * 615s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # good_types_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_for_bus_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with good_types_proxy_new_for_bus(). 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_for_bus_sync: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * GoodTypesSkeleton: 615s # * 615s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * GoodTypesSkeletonClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for GoodTypesSkeleton. 615s # */ 615s # 615s # struct _GoodTypesSkeletonPrivate 615s # { 615s # GValue *properties; 615s # GList *changed_properties; 615s # GSource *changed_properties_idle_source; 615s # GMainContext *context; 615s # GMutex lock; 615s # }; 615s # 615s # static void 615s # _good_types_skeleton_handle_method_call ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name, 615s # const gchar *method_name, 615s # GVariant *parameters, 615s # GDBusMethodInvocation *invocation, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # _ExtendedGDBusMethodInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # guint num_extra; 615s # gsize n; 615s # guint signal_id; 615s # GValue return_value = G_VALUE_INIT; 615s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 615s # g_assert (info != NULL); 615s # num_params = g_variant_n_children (parameters); 615s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 615s # n = 0; 615s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 615s # g_value_set_object (¶mv[n++], skeleton); 615s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 615s # g_value_set_object (¶mv[n++], invocation); 615s # if (info->pass_fdlist) 615s # { 615s # #ifdef G_OS_UNIX 615s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 615s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 615s # #else 615s # g_assert_not_reached (); 615s # #endif 615s # } 615s # g_variant_iter_init (&iter, parameters); 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 615s # g_value_init (&return_value, G_TYPE_BOOLEAN); 615s # g_signal_emitv (paramv, signal_id, 0, &return_value); 615s # if (!g_value_get_boolean (&return_value)) 615s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 615s # g_value_unset (&return_value); 615s # for (n = 0; n < num_params + num_extra; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static GVariant * 615s # _good_types_skeleton_handle_get_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # GVariant *ret; 615s # ret = NULL; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # g_value_init (&value, pspec->value_type); 615s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_value_unset (&value); 615s # } 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _good_types_skeleton_handle_set_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GVariant *variant, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # gboolean ret; 615s # ret = FALSE; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # if (info->use_gvariant) 615s # g_value_set_variant (&value, variant); 615s # else 615s # g_dbus_gvariant_to_gvalue (variant, &value); 615s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # g_value_unset (&value); 615s # ret = TRUE; 615s # } 615s # return ret; 615s # } 615s # 615s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 615s # { 615s # _good_types_skeleton_handle_method_call, 615s # _good_types_skeleton_handle_get_property, 615s # _good_types_skeleton_handle_set_property, 615s # {NULL} 615s # }; 615s # 615s # static GDBusInterfaceInfo * 615s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return good_types_interface_info (); 615s # } 615s # 615s # static GDBusInterfaceVTable * 615s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 615s # } 615s # 615s # static GVariant * 615s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 615s # 615s # GVariantBuilder builder; 615s # guint n; 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #else 615s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #endif 615s # if (_good_types_interface_info.parent_struct.properties == NULL) 615s # goto out; 615s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 615s # { 615s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 615s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 615s # { 615s # GVariant *value; 615s # 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); 615s # if (value != NULL) 615s # { 615s # g_variant_take_ref (value); 615s # g_variant_builder_add (&builder, "{sv}", info->name, value); 615s # g_variant_unref (value); 615s # } 615s # } 615s # } 615s # out: 615s # return g_variant_builder_end (&builder); 615s # } 615s # 615s # static gboolean _good_types_emit_changed (gpointer user_data); 615s # 615s # static void 615s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 615s # gboolean emit_changed = FALSE; 615s # 615s # g_mutex_lock (&skeleton->priv->lock); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # { 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # skeleton->priv->changed_properties_idle_source = NULL; 615s # emit_changed = TRUE; 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # 615s # if (emit_changed) 615s # _good_types_emit_changed (skeleton); 615s # } 615s # 615s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_ADD_PRIVATE (GoodTypesSkeleton) 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 615s # 615s # #endif 615s # static void 615s # good_types_skeleton_finalize (GObject *object) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # guint n; 615s # for (n = 0; n < 1; n++) 615s # g_value_unset (&skeleton->priv->properties[n]); 615s # g_free (skeleton->priv->properties); 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # g_main_context_unref (skeleton->priv->context); 615s # g_mutex_clear (&skeleton->priv->lock); 615s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # good_types_skeleton_get_property (GObject *object, 615s # guint prop_id, 615s # GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # g_mutex_lock (&skeleton->priv->lock); 615s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # } 615s # 615s # static gboolean 615s # _good_types_emit_changed (gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GList *l; 615s # GVariantBuilder builder; 615s # GVariantBuilder invalidated_builder; 615s # guint num_changes; 615s # 615s # g_mutex_lock (&skeleton->priv->lock); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 615s # #else 615s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 615s # #endif 615s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 615s # { 615s # ChangedProperty *cp = l->data; 615s # GVariant *variant; 615s # const GValue *cur_value; 615s # 615s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 615s # if (!_g_value_equal (cur_value, &cp->orig_value)) 615s # { 615s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 615s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 615s # g_variant_unref (variant); 615s # num_changes++; 615s # } 615s # } 615s # if (num_changes > 0) 615s # { 615s # GList *connections, *ll; 615s # GVariant *signal_variant; 615s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 615s # &builder, &invalidated_builder)); 615s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 615s # for (ll = connections; ll != NULL; ll = ll->next) 615s # { 615s # GDBusConnection *connection = ll->data; 615s # 615s # g_dbus_connection_emit_signal (connection, 615s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 615s # "org.freedesktop.DBus.Properties", 615s # "PropertiesChanged", 615s # signal_variant, 615s # NULL); 615s # } 615s # g_variant_unref (signal_variant); 615s # g_list_free_full (connections, g_object_unref); 615s # } 615s # else 615s # { 615s # g_variant_builder_clear (&builder); 615s # g_variant_builder_clear (&invalidated_builder); 615s # } 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # skeleton->priv->changed_properties = NULL; 615s # skeleton->priv->changed_properties_idle_source = NULL; 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # return FALSE; 615s # } 615s # 615s # static void 615s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 615s # { 615s # ChangedProperty *cp; 615s # GList *l; 615s # cp = NULL; 615s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 615s # { 615s # ChangedProperty *i_cp = l->data; 615s # if (i_cp->info == info) 615s # { 615s # cp = i_cp; 615s # break; 615s # } 615s # } 615s # if (cp == NULL) 615s # { 615s # cp = g_new0 (ChangedProperty, 1); 615s # cp->prop_id = prop_id; 615s # cp->info = info; 615s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 615s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 615s # g_value_copy (orig_value, &cp->orig_value); 615s # } 615s # } 615s # 615s # static void 615s # good_types_skeleton_notify (GObject *object, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_mutex_lock (&skeleton->priv->lock); 615s # if (skeleton->priv->changed_properties != NULL && 615s # skeleton->priv->changed_properties_idle_source == NULL) 615s # { 615s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 615s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 615s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 615s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 615s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 615s # g_source_unref (skeleton->priv->changed_properties_idle_source); 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # } 615s # 615s # static void 615s # good_types_skeleton_set_property (GObject *object, 615s # guint prop_id, 615s # const GValue *value, 615s # GParamSpec *pspec) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # g_mutex_lock (&skeleton->priv->lock); 615s # g_object_freeze_notify (object); 615s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 615s # { 615s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 615s # info->emits_changed_signal) 615s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 615s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 615s # g_object_notify_by_pspec (object, pspec); 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # g_object_thaw_notify (object); 615s # } 615s # 615s # static void 615s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 615s # #else 615s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 615s # #endif 615s # 615s # g_mutex_init (&skeleton->priv->lock); 615s # skeleton->priv->context = g_main_context_ref_thread_default (); 615s # skeleton->priv->properties = g_new0 (GValue, 1); 615s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 615s # } 615s # 615s # static GVariant * 615s # good_types_skeleton_get_good_property_type (GoodTypes *object) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # GVariant *value; 615s # g_mutex_lock (&skeleton->priv->lock); 615s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # return value; 615s # } 615s # 615s # static void 615s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusInterfaceSkeletonClass *skeleton_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = good_types_skeleton_finalize; 615s # gobject_class->get_property = good_types_skeleton_get_property; 615s # gobject_class->set_property = good_types_skeleton_set_property; 615s # gobject_class->notify = good_types_skeleton_notify; 615s # 615s # 615s # good_types_override_properties (gobject_class, 1); 615s # 615s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 615s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 615s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 615s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 615s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # good_types_skeleton_iface_init (GoodTypesIface *iface) 615s # { 615s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 615s # } 615s # 615s # /** 615s # * good_types_skeleton_new: 615s # * 615s # * Creates a skeleton object for the D-Bus interface GoodTypes. 615s # * 615s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 615s # */ 615s # GoodTypes * 615s # good_types_skeleton_new (void) 615s # { 615s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 615s # } 615s # Error: 615s # 615s # /tmp/tmpskz2tdrs/tmpwvudq29q.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpwvudq29q.xml', '--output', '-', '--body'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifdef HAVE_CONFIG_H 615s # # include "config.h" 615s # #endif 615s # 615s # #include 615s # #ifdef G_OS_UNIX 615s # # include 615s # #endif 615s # 615s # #ifdef G_ENABLE_DEBUG 615s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 615s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 615s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 615s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 615s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 615s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 615s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 615s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 615s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 615s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 615s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 615s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 615s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 615s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 615s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 615s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 615s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 615s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 615s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 615s # #else /* !G_ENABLE_DEBUG */ 615s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 615s # * Do not access GValues directly in your code. Instead, use the 615s # * g_value_get_*() functions 615s # */ 615s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 615s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 615s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 615s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 615s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 615s # #endif /* !G_ENABLE_DEBUG */ 615s # 615s # typedef struct 615s # { 615s # GDBusArgInfo parent_struct; 615s # gboolean use_gvariant; 615s # } _ExtendedGDBusArgInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusMethodInfo parent_struct; 615s # const gchar *signal_name; 615s # gboolean pass_fdlist; 615s # } _ExtendedGDBusMethodInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusSignalInfo parent_struct; 615s # const gchar *signal_name; 615s # } _ExtendedGDBusSignalInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusPropertyInfo parent_struct; 615s # const gchar *hyphen_name; 615s # guint use_gvariant : 1; 615s # guint emits_changed_signal : 1; 615s # } _ExtendedGDBusPropertyInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusInterfaceInfo parent_struct; 615s # const gchar *hyphen_name; 615s # } _ExtendedGDBusInterfaceInfo; 615s # 615s # typedef struct 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # guint prop_id; 615s # GValue orig_value; /* the value before the change */ 615s # } ChangedProperty; 615s # 615s # static void 615s # _changed_property_free (ChangedProperty *data) 615s # { 615s # g_value_unset (&data->orig_value); 615s # g_free (data); 615s # } 615s # 615s # static gboolean 615s # _g_strv_equal0 (gchar **a, gchar **b) 615s # { 615s # gboolean ret = FALSE; 615s # guint n; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # if (g_strv_length (a) != g_strv_length (b)) 615s # goto out; 615s # for (n = 0; a[n] != NULL; n++) 615s # if (g_strcmp0 (a[n], b[n]) != 0) 615s # goto out; 615s # ret = TRUE; 615s # out: 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _g_variant_equal0 (GVariant *a, GVariant *b) 615s # { 615s # gboolean ret = FALSE; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # ret = g_variant_equal (a, b); 615s # out: 615s # return ret; 615s # } 615s # 615s # G_GNUC_UNUSED static gboolean 615s # _g_value_equal (const GValue *a, const GValue *b) 615s # { 615s # gboolean ret = FALSE; 615s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 615s # switch (G_VALUE_TYPE (a)) 615s # { 615s # case G_TYPE_BOOLEAN: 615s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 615s # break; 615s # case G_TYPE_UCHAR: 615s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 615s # break; 615s # case G_TYPE_INT: 615s # ret = (g_value_get_int (a) == g_value_get_int (b)); 615s # break; 615s # case G_TYPE_UINT: 615s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 615s # break; 615s # case G_TYPE_INT64: 615s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 615s # break; 615s # case G_TYPE_UINT64: 615s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 615s # break; 615s # case G_TYPE_DOUBLE: 615s # { 615s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 615s # gdouble da = g_value_get_double (a); 615s # gdouble db = g_value_get_double (b); 615s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 615s # } 615s # break; 615s # case G_TYPE_STRING: 615s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 615s # break; 615s # case G_TYPE_VARIANT: 615s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 615s # break; 615s # default: 615s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 615s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 615s # else 615s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 615s # break; 615s # } 615s # return ret; 615s # } 615s # 615s # /* ------------------------------------------------------------------------ 615s # * Code for interface GoodTypes 615s # * ------------------------------------------------------------------------ 615s # */ 615s # 615s # /** 615s # * SECTION:GoodTypes 615s # * @title: GoodTypes 615s # * @short_description: Generated C code for the GoodTypes D-Bus interface 615s # * 615s # * This section contains code for working with the GoodTypes D-Bus interface in C. 615s # */ 615s # 615s # /* ---- Introspection data for GoodTypes ---- */ 615s # 615s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 615s # { 615s # { 615s # -1, 615s # (gchar *) "GoodPropertyType", 615s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 615s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 615s # NULL 615s # }, 615s # "good-property-type", 615s # FALSE, 615s # TRUE 615s # }; 615s # 615s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 615s # { 615s # &_good_types_property_info_good_property_type.parent_struct, 615s # NULL 615s # }; 615s # 615s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 615s # { 615s # { 615s # -1, 615s # (gchar *) "GoodTypes", 615s # NULL, 615s # NULL, 615s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 615s # NULL 615s # }, 615s # "good-types", 615s # }; 615s # 615s # 615s # /** 615s # * good_types_interface_info: 615s # * 615s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 615s # * 615s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 615s # */ 615s # GDBusInterfaceInfo * 615s # good_types_interface_info (void) 615s # { 615s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 615s # } 615s # 615s # /** 615s # * good_types_override_properties: 615s # * @klass: The class structure for a #GObject derived class. 615s # * @property_id_begin: The property id to assign to the first overridden property. 615s # * 615s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 615s # * The properties are overridden in the order they are defined. 615s # * 615s # * Returns: The last property id. 615s # */ 615s # guint 615s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 615s # { 615s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 615s # return property_id_begin - 1; 615s # } 615s # 615s # 615s # 615s # /** 615s # * GoodTypes: 615s # * 615s # * Abstract interface type for the D-Bus interface GoodTypes. 615s # */ 615s # 615s # /** 615s # * GoodTypesIface: 615s # * @parent_iface: The parent interface. 615s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 615s # * 615s # * Virtual table for the D-Bus interface GoodTypes. 615s # */ 615s # 615s # typedef GoodTypesIface GoodTypesInterface; 615s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 615s # 615s # static void 615s # good_types_default_init (GoodTypesIface *iface) 615s # { 615s # /* GObject properties for D-Bus properties: */ 615s # /** 615s # * GoodTypes:good-property-type: 615s # * 615s # * Represents the D-Bus property "GoodPropertyType". 615s # * 615s # * 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. 615s # */ 615s # g_object_interface_install_property (iface, 615s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 615s # } 615s # 615s # /** 615s # * good_types_get_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * 615s # * Gets the value of the "GoodPropertyType" D-Bus property. 615s # * 615s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 615s # * 615s # * 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. 615s # * 615s # * 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. 615s # */ 615s # GVariant * 615s # good_types_get_good_property_type (GoodTypes *object) 615s # { 615s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 615s # 615s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 615s # } 615s # 615s # /** 615s # * good_types_dup_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * 615s # * Gets a copy of the "GoodPropertyType" D-Bus property. 615s # * 615s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 615s # * 615s # * 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(). 615s # */ 615s # GVariant * 615s # good_types_dup_good_property_type (GoodTypes *object) 615s # { 615s # GVariant *value; 615s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 615s # return value; 615s # } 615s # 615s # /** 615s # * good_types_set_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * @value: The value to set. 615s # * 615s # * Sets the "GoodPropertyType" D-Bus property to @value. 615s # * 615s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 615s # */ 615s # void 615s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 615s # { 615s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * GoodTypesProxy: 615s # * 615s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * GoodTypesProxyClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for GoodTypesProxy. 615s # */ 615s # 615s # struct _GoodTypesProxyPrivate 615s # { 615s # GData *qdata; 615s # }; 615s # 615s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 615s # G_ADD_PRIVATE (GoodTypesProxy) 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 615s # 615s # #endif 615s # static void 615s # good_types_proxy_finalize (GObject *object) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 615s # g_datalist_clear (&proxy->priv->qdata); 615s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # good_types_proxy_get_property (GObject *object, 615s # guint prop_id, 615s # GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GVariant *variant; 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 615s # if (info->use_gvariant) 615s # { 615s # g_value_set_variant (value, variant); 615s # } 615s # else 615s # { 615s # if (variant != NULL) 615s # g_dbus_gvariant_to_gvalue (variant, value); 615s # } 615s # if (variant != NULL) 615s # g_variant_unref (variant); 615s # } 615s # 615s # static void 615s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 615s # GAsyncResult *res, 615s # gpointer user_data) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info = user_data; 615s # GError *error; 615s # GVariant *_ret; 615s # error = NULL; 615s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 615s # if (!_ret) 615s # { 615s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 615s # info->parent_struct.name, 615s # error->message, g_quark_to_string (error->domain), error->code); 615s # g_error_free (error); 615s # } 615s # else 615s # { 615s # g_variant_unref (_ret); 615s # } 615s # } 615s # 615s # static void 615s # good_types_proxy_set_property (GObject *object, 615s # guint prop_id, 615s # const GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GVariant *variant; 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_dbus_proxy_call (G_DBUS_PROXY (object), 615s # "org.freedesktop.DBus.Properties.Set", 615s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 615s # g_variant_unref (variant); 615s # } 615s # 615s # static void 615s # good_types_proxy_g_signal (GDBusProxy *proxy, 615s # const gchar *sender_name G_GNUC_UNUSED, 615s # const gchar *signal_name, 615s # GVariant *parameters) 615s # { 615s # _ExtendedGDBusSignalInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # gsize n; 615s # guint signal_id; 615s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 615s # if (info == NULL) 615s # return; 615s # num_params = g_variant_n_children (parameters); 615s # paramv = g_new0 (GValue, num_params + 1); 615s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 615s # g_value_set_object (¶mv[0], proxy); 615s # g_variant_iter_init (&iter, parameters); 615s # n = 1; 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 615s # g_signal_emitv (paramv, signal_id, 0, NULL); 615s # for (n = 0; n < num_params + 1; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static void 615s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 615s # GVariant *changed_properties, 615s # const gchar *const *invalidated_properties) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 615s # guint n; 615s # const gchar *key; 615s # GVariantIter *iter; 615s # _ExtendedGDBusPropertyInfo *info; 615s # g_variant_get (changed_properties, "a{sv}", &iter); 615s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 615s # g_datalist_remove_data (&proxy->priv->qdata, key); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # g_variant_iter_free (iter); 615s # for (n = 0; invalidated_properties[n] != NULL; n++) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 615s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # } 615s # 615s # static GVariant * 615s # good_types_proxy_get_good_property_type (GoodTypes *object) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 615s # GVariant *variant; 615s # GVariant *value = NULL; 615s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 615s # value = variant; 615s # if (variant != NULL) 615s # g_variant_unref (variant); 615s # return value; 615s # } 615s # 615s # static void 615s # good_types_proxy_init (GoodTypesProxy *proxy) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # proxy->priv = good_types_proxy_get_instance_private (proxy); 615s # #else 615s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 615s # #endif 615s # 615s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 615s # } 615s # 615s # static void 615s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusProxyClass *proxy_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = good_types_proxy_finalize; 615s # gobject_class->get_property = good_types_proxy_get_property; 615s # gobject_class->set_property = good_types_proxy_set_property; 615s # 615s # proxy_class = G_DBUS_PROXY_CLASS (klass); 615s # proxy_class->g_signal = good_types_proxy_g_signal; 615s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 615s # 615s # good_types_override_properties (gobject_class, 1); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # good_types_proxy_iface_init (GoodTypesIface *iface) 615s # { 615s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 615s # * 615s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # good_types_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with good_types_proxy_new(). 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_sync: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See good_types_proxy_new() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /** 615s # * good_types_proxy_new_for_bus: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 615s # * 615s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # good_types_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_for_bus_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with good_types_proxy_new_for_bus(). 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_for_bus_sync: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * GoodTypesSkeleton: 615s # * 615s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * GoodTypesSkeletonClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for GoodTypesSkeleton. 615s # */ 615s # 615s # struct _GoodTypesSkeletonPrivate 615s # { 615s # GValue *properties; 615s # GList *changed_properties; 615s # GSource *changed_properties_idle_source; 615s # GMainContext *context; 615s # GMutex lock; 615s # }; 615s # 615s # static void 615s # _good_types_skeleton_handle_method_call ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name, 615s # const gchar *method_name, 615s # GVariant *parameters, 615s # GDBusMethodInvocation *invocation, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # _ExtendedGDBusMethodInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # guint num_extra; 615s # gsize n; 615s # guint signal_id; 615s # GValue return_value = G_VALUE_INIT; 615s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 615s # g_assert (info != NULL); 615s # num_params = g_variant_n_children (parameters); 615s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 615s # n = 0; 615s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 615s # g_value_set_object (¶mv[n++], skeleton); 615s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 615s # g_value_set_object (¶mv[n++], invocation); 615s # if (info->pass_fdlist) 615s # { 615s # #ifdef G_OS_UNIX 615s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 615s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 615s # #else 615s # g_assert_not_reached (); 615s # #endif 615s # } 615s # g_variant_iter_init (&iter, parameters); 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 615s # g_value_init (&return_value, G_TYPE_BOOLEAN); 615s # g_signal_emitv (paramv, signal_id, 0, &return_value); 615s # if (!g_value_get_boolean (&return_value)) 615s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 615s # g_value_unset (&return_value); 615s # for (n = 0; n < num_params + num_extra; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static GVariant * 615s # _good_types_skeleton_handle_get_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # GVariant *ret; 615s # ret = NULL; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # g_value_init (&value, pspec->value_type); 615s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_value_unset (&value); 615s # } 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _good_types_skeleton_handle_set_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GVariant *variant, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # gboolean ret; 615s # ret = FALSE; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # if (info->use_gvariant) 615s # g_value_set_variant (&value, variant); 615s # else 615s # g_dbus_gvariant_to_gvalue (variant, &value); 615s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # g_value_unset (&value); 615s # ret = TRUE; 615s # } 615s # return ret; 615s # } 615s # 615s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 615s # { 615s # _good_types_skeleton_handle_method_call, 615s # _good_types_skeleton_handle_get_property, 615s # _good_types_skeleton_handle_set_property, 615s # {NULL} 615s # }; 615s # 615s # static GDBusInterfaceInfo * 615s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return good_types_interface_info (); 615s # } 615s # 615s # static GDBusInterfaceVTable * 615s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 615s # } 615s # 615s # static GVariant * 615s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 615s # 615s # GVariantBuilder builder; 615s # guint n; 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #else 615s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #endif 615s # if (_good_types_interface_info.parent_struct.properties == NULL) 615s # goto out; 615s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 615s # { 615s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 615s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 615s # { 615s # GVariant *value; 615s # 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); 615s # if (value != NULL) 615s # { 615s # g_variant_take_ref (value); 615s # g_variant_builder_add (&builder, "{sv}", info->name, value); 615s # g_variant_unref (value); 615s # } 615s # } 615s # } 615s # out: 615s # return g_variant_builder_end (&builder); 615s # } 615s # 615s # static gboolean _good_types_emit_changed (gpointer user_data); 615s # 615s # static void 615s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 615s # gboolean emit_changed = FALSE; 615s # 615s # g_mutex_lock (&skeleton->priv->lock); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # { 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # skeleton->priv->changed_properties_idle_source = NULL; 615s # emit_changed = TRUE; 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # 615s # if (emit_changed) 615s # _good_types_emit_changed (skeleton); 615s # } 615s # 615s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_ADD_PRIVATE (GoodTypesSkeleton) 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 615s # 615s # #endif 615s # static void 615s # good_types_skeleton_finalize (GObject *object) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # guint n; 615s # for (n = 0; n < 1; n++) 615s # g_value_unset (&skeleton->priv->properties[n]); 615s # g_free (skeleton->priv->properties); 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # g_main_context_unref (skeleton->priv->context); 615s # g_mutex_clear (&skeleton->priv->lock); 615s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # good_types_skeleton_get_property (GObject *object, 615s # guint prop_id, 615s # GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # g_mutex_lock (&skeleton->priv->lock); 615s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # } 615s # 615s # static gboolean 615s # _good_types_emit_changed (gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GList *l; 615s # GVariantBuilder builder; 615s # GVariantBuilder invalidated_builder; 615s # guint num_changes; 615s # 615s # g_mutex_lock (&skeleton->priv->lock); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 615s # #else 615s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 615s # #endif 615s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 615s # { 615s # ChangedProperty *cp = l->data; 615s # GVariant *variant; 615s # const GValue *cur_value; 615s # 615s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 615s # if (!_g_value_equal (cur_value, &cp->orig_value)) 615s # { 615s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 615s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 615s # g_variant_unref (variant); 615s # num_changes++; 615s # } 615s # } 615s # if (num_changes > 0) 615s # { 615s # GList *connections, *ll; 615s # GVariant *signal_variant; 615s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 615s # &builder, &invalidated_builder)); 615s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 615s # for (ll = connections; ll != NULL; ll = ll->next) 615s # { 615s # GDBusConnection *connection = ll->data; 615s # 615s # g_dbus_connection_emit_signal (connection, 615s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 615s # "org.freedesktop.DBus.Properties", 615s # "PropertiesChanged", 615s # signal_variant, 615s # NULL); 615s # } 615s # g_variant_unref (signal_variant); 615s # g_list_free_full (connections, g_object_unref); 615s # } 615s # else 615s # { 615s # g_variant_builder_clear (&builder); 615s # g_variant_builder_clear (&invalidated_builder); 615s # } 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # skeleton->priv->changed_properties = NULL; 615s # skeleton->priv->changed_properties_idle_source = NULL; 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # return FALSE; 615s # } 615s # 615s # static void 615s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 615s # { 615s # ChangedProperty *cp; 615s # GList *l; 615s # cp = NULL; 615s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 615s # { 615s # ChangedProperty *i_cp = l->data; 615s # if (i_cp->info == info) 615s # { 615s # cp = i_cp; 615s # break; 615s # } 615s # } 615s # if (cp == NULL) 615s # { 615s # cp = g_new0 (ChangedProperty, 1); 615s # cp->prop_id = prop_id; 615s # cp->info = info; 615s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 615s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 615s # g_value_copy (orig_value, &cp->orig_value); 615s # } 615s # } 615s # 615s # static void 615s # good_types_skeleton_notify (GObject *object, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_mutex_lock (&skeleton->priv->lock); 615s # if (skeleton->priv->changed_properties != NULL && 615s # skeleton->priv->changed_properties_idle_source == NULL) 615s # { 615s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 615s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 615s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 615s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 615s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 615s # g_source_unref (skeleton->priv->changed_properties_idle_source); 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # } 615s # 615s # static void 615s # good_types_skeleton_set_property (GObject *object, 615s # guint prop_id, 615s # const GValue *value, 615s # GParamSpec *pspec) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # g_mutex_lock (&skeleton->priv->lock); 615s # g_object_freeze_notify (object); 615s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 615s # { 615s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 615s # info->emits_changed_signal) 615s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 615s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 615s # g_object_notify_by_pspec (object, pspec); 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # g_object_thaw_notify (object); 615s # } 615s # 615s # static void 615s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 615s # #else 615s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 615s # #endif 615s # 615s # g_mutex_init (&skeleton->priv->lock); 615s # skeleton->priv->context = g_main_context_ref_thread_default (); 615s # skeleton->priv->properties = g_new0 (GValue, 1); 615s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 615s # } 615s # 615s # static GVariant * 615s # good_types_skeleton_get_good_property_type (GoodTypes *object) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # GVariant *value; 615s # g_mutex_lock (&skeleton->priv->lock); 615s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # return value; 615s # } 615s # 615s # static void 615s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusInterfaceSkeletonClass *skeleton_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = good_types_skeleton_finalize; 615s # gobject_class->get_property = good_types_skeleton_get_property; 615s # gobject_class->set_property = good_types_skeleton_set_property; 615s # gobject_class->notify = good_types_skeleton_notify; 615s # 615s # 615s # good_types_override_properties (gobject_class, 1); 615s # 615s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 615s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 615s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 615s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 615s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # good_types_skeleton_iface_init (GoodTypesIface *iface) 615s # { 615s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 615s # } 615s # 615s # /** 615s # * good_types_skeleton_new: 615s # * 615s # * Creates a skeleton object for the D-Bus interface GoodTypes. 615s # * 615s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 615s # */ 615s # GoodTypes * 615s # good_types_skeleton_new (void) 615s # { 615s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 615s # } 615s # Error: 615s # 615s # /tmp/tmpskz2tdrs/tmpluu5fxoo.xml: 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskz2tdrs/tmpluu5fxoo.xml', '--output', '-', '--body'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifdef HAVE_CONFIG_H 615s # # include "config.h" 615s # #endif 615s # 615s # #include 615s # #ifdef G_OS_UNIX 615s # # include 615s # #endif 615s # 615s # #ifdef G_ENABLE_DEBUG 615s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 615s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 615s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 615s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 615s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 615s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 615s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 615s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 615s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 615s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 615s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 615s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 615s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 615s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 615s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 615s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 615s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 615s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 615s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 615s # #else /* !G_ENABLE_DEBUG */ 615s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 615s # * Do not access GValues directly in your code. Instead, use the 615s # * g_value_get_*() functions 615s # */ 615s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 615s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 615s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 615s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 615s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 615s # #endif /* !G_ENABLE_DEBUG */ 615s # 615s # typedef struct 615s # { 615s # GDBusArgInfo parent_struct; 615s # gboolean use_gvariant; 615s # } _ExtendedGDBusArgInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusMethodInfo parent_struct; 615s # const gchar *signal_name; 615s # gboolean pass_fdlist; 615s # } _ExtendedGDBusMethodInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusSignalInfo parent_struct; 615s # const gchar *signal_name; 615s # } _ExtendedGDBusSignalInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusPropertyInfo parent_struct; 615s # const gchar *hyphen_name; 615s # guint use_gvariant : 1; 615s # guint emits_changed_signal : 1; 615s # } _ExtendedGDBusPropertyInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusInterfaceInfo parent_struct; 615s # const gchar *hyphen_name; 615s # } _ExtendedGDBusInterfaceInfo; 615s # 615s # typedef struct 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # guint prop_id; 615s # GValue orig_value; /* the value before the change */ 615s # } ChangedProperty; 615s # 615s # static void 615s # _changed_property_free (ChangedProperty *data) 615s # { 615s # g_value_unset (&data->orig_value); 615s # g_free (data); 615s # } 615s # 615s # static gboolean 615s # _g_strv_equal0 (gchar **a, gchar **b) 615s # { 615s # gboolean ret = FALSE; 615s # guint n; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # if (g_strv_length (a) != g_strv_length (b)) 615s # goto out; 615s # for (n = 0; a[n] != NULL; n++) 615s # if (g_strcmp0 (a[n], b[n]) != 0) 615s # goto out; 615s # ret = TRUE; 615s # out: 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _g_variant_equal0 (GVariant *a, GVariant *b) 615s # { 615s # gboolean ret = FALSE; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # ret = g_variant_equal (a, b); 615s # out: 615s # return ret; 615s # } 615s # 615s # G_GNUC_UNUSED static gboolean 615s # _g_value_equal (const GValue *a, const GValue *b) 615s # { 615s # gboolean ret = FALSE; 615s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 615s # switch (G_VALUE_TYPE (a)) 615s # { 615s # case G_TYPE_BOOLEAN: 615s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 615s # break; 615s # case G_TYPE_UCHAR: 615s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 615s # break; 615s # case G_TYPE_INT: 615s # ret = (g_value_get_int (a) == g_value_get_int (b)); 615s # break; 615s # case G_TYPE_UINT: 615s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 615s # break; 615s # case G_TYPE_INT64: 615s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 615s # break; 615s # case G_TYPE_UINT64: 615s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 615s # break; 615s # case G_TYPE_DOUBLE: 615s # { 615s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 615s # gdouble da = g_value_get_double (a); 615s # gdouble db = g_value_get_double (b); 615s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 615s # } 615s # break; 615s # case G_TYPE_STRING: 615s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 615s # break; 615s # case G_TYPE_VARIANT: 615s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 615s # break; 615s # default: 615s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 615s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 615s # else 615s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 615s # break; 615s # } 615s # return ret; 615s # } 615s # 615s # /* ------------------------------------------------------------------------ 615s # * Code for interface GoodTypes 615s # * ------------------------------------------------------------------------ 615s # */ 615s # 615s # /** 615s # * SECTION:GoodTypes 615s # * @title: GoodTypes 615s # * @short_description: Generated C code for the GoodTypes D-Bus interface 615s # * 615s # * This section contains code for working with the GoodTypes D-Bus interface in C. 615s # */ 615s # 615s # /* ---- Introspection data for GoodTypes ---- */ 615s # 615s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 615s # { 615s # { 615s # -1, 615s # (gchar *) "GoodPropertyType", 615s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 615s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 615s # NULL 615s # }, 615s # "good-property-type", 615s # FALSE, 615s # TRUE 615s # }; 615s # 615s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 615s # { 615s # &_good_types_property_info_good_property_type.parent_struct, 615s # NULL 615s # }; 615s # 615s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 615s # { 615s # { 615s # -1, 615s # (gchar *) "GoodTypes", 615s # NULL, 615s # NULL, 615s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 615s # NULL 615s # }, 615s # "good-types", 615s # }; 615s # 615s # 615s # /** 615s # * good_types_interface_info: 615s # * 615s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 615s # * 615s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 615s # */ 615s # GDBusInterfaceInfo * 615s # good_types_interface_info (void) 615s # { 615s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 615s # } 615s # 615s # /** 615s # * good_types_override_properties: 615s # * @klass: The class structure for a #GObject derived class. 615s # * @property_id_begin: The property id to assign to the first overridden property. 615s # * 615s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 615s # * The properties are overridden in the order they are defined. 615s # * 615s # * Returns: The last property id. 615s # */ 615s # guint 615s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 615s # { 615s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 615s # return property_id_begin - 1; 615s # } 615s # 615s # 615s # 615s # /** 615s # * GoodTypes: 615s # * 615s # * Abstract interface type for the D-Bus interface GoodTypes. 615s # */ 615s # 615s # /** 615s # * GoodTypesIface: 615s # * @parent_iface: The parent interface. 615s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 615s # * 615s # * Virtual table for the D-Bus interface GoodTypes. 615s # */ 615s # 615s # typedef GoodTypesIface GoodTypesInterface; 615s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 615s # 615s # static void 615s # good_types_default_init (GoodTypesIface *iface) 615s # { 615s # /* GObject properties for D-Bus properties: */ 615s # /** 615s # * GoodTypes:good-property-type: 615s # * 615s # * Represents the D-Bus property "GoodPropertyType". 615s # * 615s # * 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. 615s # */ 615s # g_object_interface_install_property (iface, 615s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 615s # } 615s # 615s # /** 615s # * good_types_get_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * 615s # * Gets the value of the "GoodPropertyType" D-Bus property. 615s # * 615s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 615s # * 615s # * 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. 615s # * 615s # * 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. 615s # */ 615s # GVariant * 615s # good_types_get_good_property_type (GoodTypes *object) 615s # { 615s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 615s # 615s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 615s # } 615s # 615s # /** 615s # * good_types_dup_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * 615s # * Gets a copy of the "GoodPropertyType" D-Bus property. 615s # * 615s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 615s # * 615s # * 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(). 615s # */ 615s # GVariant * 615s # good_types_dup_good_property_type (GoodTypes *object) 615s # { 615s # GVariant *value; 615s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 615s # return value; 615s # } 615s # 615s # /** 615s # * good_types_set_good_property_type: (skip) 615s # * @object: A GoodTypes. 615s # * @value: The value to set. 615s # * 615s # * Sets the "GoodPropertyType" D-Bus property to @value. 615s # * 615s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 615s # */ 615s # void 615s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 615s # { 615s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * GoodTypesProxy: 615s # * 615s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * GoodTypesProxyClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for GoodTypesProxy. 615s # */ 615s # 615s # struct _GoodTypesProxyPrivate 615s # { 615s # GData *qdata; 615s # }; 615s # 615s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 615s # G_ADD_PRIVATE (GoodTypesProxy) 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 615s # 615s # #endif 615s # static void 615s # good_types_proxy_finalize (GObject *object) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 615s # g_datalist_clear (&proxy->priv->qdata); 615s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # good_types_proxy_get_property (GObject *object, 615s # guint prop_id, 615s # GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GVariant *variant; 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 615s # if (info->use_gvariant) 615s # { 615s # g_value_set_variant (value, variant); 615s # } 615s # else 615s # { 615s # if (variant != NULL) 615s # g_dbus_gvariant_to_gvalue (variant, value); 615s # } 615s # if (variant != NULL) 615s # g_variant_unref (variant); 615s # } 615s # 615s # static void 615s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 615s # GAsyncResult *res, 615s # gpointer user_data) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info = user_data; 615s # GError *error; 615s # GVariant *_ret; 615s # error = NULL; 615s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 615s # if (!_ret) 615s # { 615s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 615s # info->parent_struct.name, 615s # error->message, g_quark_to_string (error->domain), error->code); 615s # g_error_free (error); 615s # } 615s # else 615s # { 615s # g_variant_unref (_ret); 615s # } 615s # } 615s # 615s # static void 615s # good_types_proxy_set_property (GObject *object, 615s # guint prop_id, 615s # const GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GVariant *variant; 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_dbus_proxy_call (G_DBUS_PROXY (object), 615s # "org.freedesktop.DBus.Properties.Set", 615s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 615s # g_variant_unref (variant); 615s # } 615s # 615s # static void 615s # good_types_proxy_g_signal (GDBusProxy *proxy, 615s # const gchar *sender_name G_GNUC_UNUSED, 615s # const gchar *signal_name, 615s # GVariant *parameters) 615s # { 615s # _ExtendedGDBusSignalInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # gsize n; 615s # guint signal_id; 615s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 615s # if (info == NULL) 615s # return; 615s # num_params = g_variant_n_children (parameters); 615s # paramv = g_new0 (GValue, num_params + 1); 615s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 615s # g_value_set_object (¶mv[0], proxy); 615s # g_variant_iter_init (&iter, parameters); 615s # n = 1; 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 615s # g_signal_emitv (paramv, signal_id, 0, NULL); 615s # for (n = 0; n < num_params + 1; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static void 615s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 615s # GVariant *changed_properties, 615s # const gchar *const *invalidated_properties) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 615s # guint n; 615s # const gchar *key; 615s # GVariantIter *iter; 615s # _ExtendedGDBusPropertyInfo *info; 615s # g_variant_get (changed_properties, "a{sv}", &iter); 615s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 615s # g_datalist_remove_data (&proxy->priv->qdata, key); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # g_variant_iter_free (iter); 615s # for (n = 0; invalidated_properties[n] != NULL; n++) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 615s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # } 615s # 615s # static GVariant * 615s # good_types_proxy_get_good_property_type (GoodTypes *object) 615s # { 615s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 615s # GVariant *variant; 615s # GVariant *value = NULL; 615s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 615s # value = variant; 615s # if (variant != NULL) 615s # g_variant_unref (variant); 615s # return value; 615s # } 615s # 615s # static void 615s # good_types_proxy_init (GoodTypesProxy *proxy) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # proxy->priv = good_types_proxy_get_instance_private (proxy); 615s # #else 615s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 615s # #endif 615s # 615s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 615s # } 615s # 615s # static void 615s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusProxyClass *proxy_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = good_types_proxy_finalize; 615s # gobject_class->get_property = good_types_proxy_get_property; 615s # gobject_class->set_property = good_types_proxy_set_property; 615s # 615s # proxy_class = G_DBUS_PROXY_CLASS (klass); 615s # proxy_class->g_signal = good_types_proxy_g_signal; 615s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 615s # 615s # good_types_override_properties (gobject_class, 1); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # good_types_proxy_iface_init (GoodTypesIface *iface) 615s # { 615s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 615s # * 615s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # good_types_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with good_types_proxy_new(). 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_sync: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See good_types_proxy_new() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /** 615s # * good_types_proxy_new_for_bus: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 615s # * 615s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # good_types_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_for_bus_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with good_types_proxy_new_for_bus(). 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * good_types_proxy_new_for_bus_sync: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # GoodTypes * 615s # good_types_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return GOOD_TYPES (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * GoodTypesSkeleton: 615s # * 615s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * GoodTypesSkeletonClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for GoodTypesSkeleton. 615s # */ 615s # 615s # struct _GoodTypesSkeletonPrivate 615s # { 615s # GValue *properties; 615s # GList *changed_properties; 615s # GSource *changed_properties_idle_source; 615s # GMainContext *context; 615s # GMutex lock; 615s # }; 615s # 615s # static void 615s # _good_types_skeleton_handle_method_call ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name, 615s # const gchar *method_name, 615s # GVariant *parameters, 615s # GDBusMethodInvocation *invocation, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # _ExtendedGDBusMethodInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # guint num_extra; 615s # gsize n; 615s # guint signal_id; 615s # GValue return_value = G_VALUE_INIT; 615s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 615s # g_assert (info != NULL); 615s # num_params = g_variant_n_children (parameters); 615s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 615s # n = 0; 615s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 615s # g_value_set_object (¶mv[n++], skeleton); 615s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 615s # g_value_set_object (¶mv[n++], invocation); 615s # if (info->pass_fdlist) 615s # { 615s # #ifdef G_OS_UNIX 615s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 615s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 615s # #else 615s # g_assert_not_reached (); 615s # #endif 615s # } 615s # g_variant_iter_init (&iter, parameters); 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 615s # g_value_init (&return_value, G_TYPE_BOOLEAN); 615s # g_signal_emitv (paramv, signal_id, 0, &return_value); 615s # if (!g_value_get_boolean (&return_value)) 615s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 615s # g_value_unset (&return_value); 615s # for (n = 0; n < num_params + num_extra; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static GVariant * 615s # _good_types_skeleton_handle_get_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # GVariant *ret; 615s # ret = NULL; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # g_value_init (&value, pspec->value_type); 615s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_value_unset (&value); 615s # } 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _good_types_skeleton_handle_set_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GVariant *variant, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # gboolean ret; 615s # ret = FALSE; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # if (info->use_gvariant) 615s # g_value_set_variant (&value, variant); 615s # else 615s # g_dbus_gvariant_to_gvalue (variant, &value); 615s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # g_value_unset (&value); 615s # ret = TRUE; 615s # } 615s # return ret; 615s # } 615s # 615s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 615s # { 615s # _good_types_skeleton_handle_method_call, 615s # _good_types_skeleton_handle_get_property, 615s # _good_types_skeleton_handle_set_property, 615s # {NULL} 615s # }; 615s # 615s # static GDBusInterfaceInfo * 615s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return good_types_interface_info (); 615s # } 615s # 615s # static GDBusInterfaceVTable * 615s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 615s # } 615s # 615s # static GVariant * 615s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 615s # 615s # GVariantBuilder builder; 615s # guint n; 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #else 615s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #endif 615s # if (_good_types_interface_info.parent_struct.properties == NULL) 615s # goto out; 615s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 615s # { 615s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 615s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 615s # { 615s # GVariant *value; 615s # 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); 615s # if (value != NULL) 615s # { 615s # g_variant_take_ref (value); 615s # g_variant_builder_add (&builder, "{sv}", info->name, value); 615s # g_variant_unref (value); 615s # } 615s # } 615s # } 615s # out: 615s # return g_variant_builder_end (&builder); 615s # } 615s # 615s # static gboolean _good_types_emit_changed (gpointer user_data); 615s # 615s # static void 615s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 615s # gboolean emit_changed = FALSE; 615s # 615s # g_mutex_lock (&skeleton->priv->lock); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # { 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # skeleton->priv->changed_properties_idle_source = NULL; 615s # emit_changed = TRUE; 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # 615s # if (emit_changed) 615s # _good_types_emit_changed (skeleton); 615s # } 615s # 615s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_ADD_PRIVATE (GoodTypesSkeleton) 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 615s # 615s # #endif 615s # static void 615s # good_types_skeleton_finalize (GObject *object) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # guint n; 615s # for (n = 0; n < 1; n++) 615s # g_value_unset (&skeleton->priv->properties[n]); 615s # g_free (skeleton->priv->properties); 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # g_main_context_unref (skeleton->priv->context); 615s # g_mutex_clear (&skeleton->priv->lock); 615s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # good_types_skeleton_get_property (GObject *object, 615s # guint prop_id, 615s # GValue *value, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # g_mutex_lock (&skeleton->priv->lock); 615s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # } 615s # 615s # static gboolean 615s # _good_types_emit_changed (gpointer user_data) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 615s # GList *l; 615s # GVariantBuilder builder; 615s # GVariantBuilder invalidated_builder; 615s # guint num_changes; 615s # 615s # g_mutex_lock (&skeleton->priv->lock); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 615s # #else 615s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 615s # #endif 615s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 615s # { 615s # ChangedProperty *cp = l->data; 615s # GVariant *variant; 615s # const GValue *cur_value; 615s # 615s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 615s # if (!_g_value_equal (cur_value, &cp->orig_value)) 615s # { 615s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 615s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 615s # g_variant_unref (variant); 615s # num_changes++; 615s # } 615s # } 615s # if (num_changes > 0) 615s # { 615s # GList *connections, *ll; 615s # GVariant *signal_variant; 615s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 615s # &builder, &invalidated_builder)); 615s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 615s # for (ll = connections; ll != NULL; ll = ll->next) 615s # { 615s # GDBusConnection *connection = ll->data; 615s # 615s # g_dbus_connection_emit_signal (connection, 615s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 615s # "org.freedesktop.DBus.Properties", 615s # "PropertiesChanged", 615s # signal_variant, 615s # NULL); 615s # } 615s # g_variant_unref (signal_variant); 615s # g_list_free_full (connections, g_object_unref); 615s # } 615s # else 615s # { 615s # g_variant_builder_clear (&builder); 615s # g_variant_builder_clear (&invalidated_builder); 615s # } 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # skeleton->priv->changed_properties = NULL; 615s # skeleton->priv->changed_properties_idle_source = NULL; 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # return FALSE; 615s # } 615s # 615s # static void 615s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 615s # { 615s # ChangedProperty *cp; 615s # GList *l; 615s # cp = NULL; 615s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 615s # { 615s # ChangedProperty *i_cp = l->data; 615s # if (i_cp->info == info) 615s # { 615s # cp = i_cp; 615s # break; 615s # } 615s # } 615s # if (cp == NULL) 615s # { 615s # cp = g_new0 (ChangedProperty, 1); 615s # cp->prop_id = prop_id; 615s # cp->info = info; 615s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 615s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 615s # g_value_copy (orig_value, &cp->orig_value); 615s # } 615s # } 615s # 615s # static void 615s # good_types_skeleton_notify (GObject *object, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_mutex_lock (&skeleton->priv->lock); 615s # if (skeleton->priv->changed_properties != NULL && 615s # skeleton->priv->changed_properties_idle_source == NULL) 615s # { 615s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 615s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 615s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 615s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 615s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 615s # g_source_unref (skeleton->priv->changed_properties_idle_source); 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # } 615s # 615s # static void 615s # good_types_skeleton_set_property (GObject *object, 615s # guint prop_id, 615s # const GValue *value, 615s # GParamSpec *pspec) 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # g_assert (prop_id != 0 && prop_id - 1 < 1); 615s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 615s # g_mutex_lock (&skeleton->priv->lock); 615s # g_object_freeze_notify (object); 615s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 615s # { 615s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 615s # info->emits_changed_signal) 615s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 615s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 615s # g_object_notify_by_pspec (object, pspec); 615s # } 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # g_object_thaw_notify (object); 615s # } 615s # 615s # static void 615s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 615s # #else 615s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 615s # #endif 615s # 615s # g_mutex_init (&skeleton->priv->lock); 615s # skeleton->priv->context = g_main_context_ref_thread_default (); 615s # skeleton->priv->properties = g_new0 (GValue, 1); 615s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 615s # } 615s # 615s # static GVariant * 615s # good_types_skeleton_get_good_property_type (GoodTypes *object) 615s # { 615s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 615s # GVariant *value; 615s # g_mutex_lock (&skeleton->priv->lock); 615s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 615s # g_mutex_unlock (&skeleton->priv->lock); 615s # return value; 615s # } 615s # 615s # static void 615s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusInterfaceSkeletonClass *skeleton_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = good_types_skeleton_finalize; 615s # gobject_class->get_property = good_types_skeleton_get_property; 615s # gobject_class->set_property = good_types_skeleton_set_property; 615s # gobject_class->notify = good_types_skeleton_notify; 615s # 615s # 615s # good_types_override_properties (gobject_class, 1); 615s # 615s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 615s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 615s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 615s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 615s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # good_types_skeleton_iface_init (GoodTypesIface *iface) 615s # { 615s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 615s # } 615s # 615s # /** 615s # * good_types_skeleton_new: 615s # * 615s # * Creates a skeleton object for the D-Bus interface GoodTypes. 615s # * 615s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 615s # */ 615s # GoodTypes * 615s # good_types_skeleton_new (void) 615s # { 615s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 615s # } 615s # Error: 615s ok 3 __main__.TestCodegen.test_empty_interface_body 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmp2p3atr28 615s # /tmp/tmp2p3atr28/tmp8wg_4ykk.xml: 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2p3atr28/tmp8wg_4ykk.xml', '--output', '-', '--body'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifdef HAVE_CONFIG_H 615s # # include "config.h" 615s # #endif 615s # 615s # #include 615s # #ifdef G_OS_UNIX 615s # # include 615s # #endif 615s # 615s # #ifdef G_ENABLE_DEBUG 615s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 615s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 615s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 615s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 615s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 615s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 615s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 615s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 615s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 615s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 615s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 615s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 615s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 615s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 615s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 615s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 615s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 615s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 615s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 615s # #else /* !G_ENABLE_DEBUG */ 615s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 615s # * Do not access GValues directly in your code. Instead, use the 615s # * g_value_get_*() functions 615s # */ 615s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 615s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 615s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 615s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 615s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 615s # #endif /* !G_ENABLE_DEBUG */ 615s # 615s # typedef struct 615s # { 615s # GDBusArgInfo parent_struct; 615s # gboolean use_gvariant; 615s # } _ExtendedGDBusArgInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusMethodInfo parent_struct; 615s # const gchar *signal_name; 615s # gboolean pass_fdlist; 615s # } _ExtendedGDBusMethodInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusSignalInfo parent_struct; 615s # const gchar *signal_name; 615s # } _ExtendedGDBusSignalInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusPropertyInfo parent_struct; 615s # const gchar *hyphen_name; 615s # guint use_gvariant : 1; 615s # guint emits_changed_signal : 1; 615s # } _ExtendedGDBusPropertyInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusInterfaceInfo parent_struct; 615s # const gchar *hyphen_name; 615s # } _ExtendedGDBusInterfaceInfo; 615s # 615s # typedef struct 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # guint prop_id; 615s # GValue orig_value; /* the value before the change */ 615s # } ChangedProperty; 615s # 615s # static void 615s # _changed_property_free (ChangedProperty *data) 615s # { 615s # g_value_unset (&data->orig_value); 615s # g_free (data); 615s # } 615s # 615s # static gboolean 615s # _g_strv_equal0 (gchar **a, gchar **b) 615s # { 615s # gboolean ret = FALSE; 615s # guint n; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # if (g_strv_length (a) != g_strv_length (b)) 615s # goto out; 615s # for (n = 0; a[n] != NULL; n++) 615s # if (g_strcmp0 (a[n], b[n]) != 0) 615s # goto out; 615s # ret = TRUE; 615s # out: 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _g_variant_equal0 (GVariant *a, GVariant *b) 615s # { 615s # gboolean ret = FALSE; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # ret = g_variant_equal (a, b); 615s # out: 615s # return ret; 615s # } 615s # 615s # G_GNUC_UNUSED static gboolean 615s # _g_value_equal (const GValue *a, const GValue *b) 615s # { 615s # gboolean ret = FALSE; 615s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 615s # switch (G_VALUE_TYPE (a)) 615s # { 615s # case G_TYPE_BOOLEAN: 615s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 615s # break; 615s # case G_TYPE_UCHAR: 615s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 615s # break; 615s # case G_TYPE_INT: 615s # ret = (g_value_get_int (a) == g_value_get_int (b)); 615s # break; 615s # case G_TYPE_UINT: 615s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 615s # break; 615s # case G_TYPE_INT64: 615s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 615s # break; 615s # case G_TYPE_UINT64: 615s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 615s # break; 615s # case G_TYPE_DOUBLE: 615s # { 615s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 615s # gdouble da = g_value_get_double (a); 615s # gdouble db = g_value_get_double (b); 615s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 615s # } 615s # break; 615s # case G_TYPE_STRING: 615s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 615s # break; 615s # case G_TYPE_VARIANT: 615s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 615s # break; 615s # default: 615s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 615s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 615s # else 615s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 615s # break; 615s # } 615s # return ret; 615s # } 615s # Error: 615s ok 4 __main__.TestCodegen.test_empty_interface_header 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmpdzeg7hjb 615s # /tmp/tmpdzeg7hjb/tmpgrz6xj3z.xml: 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdzeg7hjb/tmpgrz6xj3z.xml', '--output', '-', '--header'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifndef __STDOUT__ 615s # #define __STDOUT__ 615s # 615s # #include 615s # 615s # G_BEGIN_DECLS 615s # 615s # 615s # G_END_DECLS 615s # 615s # #endif /* __STDOUT__ */ 615s # Error: 615s ok 5 __main__.TestCodegen.test_empty_interface_info_body 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmp_fdbiaq3 615s # /tmp/tmp_fdbiaq3/tmphhbwjkj0.xml: 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_fdbiaq3/tmphhbwjkj0.xml', '--output', '-', '--interface-info-body'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifdef HAVE_CONFIG_H 615s # # include "config.h" 615s # #endif 615s # 615s # #include 615s # Error: 615s ok 6 __main__.TestCodegen.test_empty_interface_info_header 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmpubey6_b1 615s # /tmp/tmpubey6_b1/tmpu5jtvaaj.xml: 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpubey6_b1/tmpu5jtvaaj.xml', '--output', '-', '--interface-info-header'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifndef __STDOUT__ 615s # #define __STDOUT__ 615s # 615s # #include 615s # 615s # G_BEGIN_DECLS 615s # 615s # 615s # G_END_DECLS 615s # 615s # #endif /* __STDOUT__ */ 615s # Error: 615s ok 7 __main__.TestCodegen.test_generate_docbook 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmprw7b11xo 615s # /tmp/tmprw7b11xo/tmp69tasu8k.xml: 615s # 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprw7b11xo/tmp69tasu8k.xml', '--generate-docbook', 'test'] 615s # Return code: 0 615s # Output: 615s # 615s # Error: 615s ok 8 __main__.TestCodegen.test_generate_md 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmpxvo__y2g 615s # /tmp/tmpxvo__y2g/tmpfisixn1u.xml: 615s # 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxvo__y2g/tmpfisixn1u.xml', '--generate-md', 'test'] 615s # Return code: 0 615s # Output: 615s # 615s # Error: 615s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 615s # gdbus-codegen: /usr/bin/gdbus-codegen 615s # tmpdir: /tmp/tmpek0nh0xx 615s # /tmp/tmpek0nh0xx/tmpzpixeo8f.xml: 615s # 615s # 615s # 615s # 615s # 615s # 615s # 615s # 615s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpek0nh0xx/tmpzpixeo8f.xml', '--output', '-', '--body'] 615s # Return code: 0 615s # Output: 615s # /* 615s # * This file is generated by gdbus-codegen, do not modify it. 615s # * 615s # * The license of this code is the same as for the D-Bus interface description 615s # * it was derived from. Note that it links to GLib, so must comply with the 615s # * LGPL linking clauses. 615s # */ 615s # 615s # #ifdef HAVE_CONFIG_H 615s # # include "config.h" 615s # #endif 615s # 615s # #include 615s # #ifdef G_OS_UNIX 615s # # include 615s # #endif 615s # 615s # #ifdef G_ENABLE_DEBUG 615s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 615s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 615s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 615s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 615s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 615s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 615s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 615s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 615s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 615s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 615s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 615s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 615s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 615s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 615s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 615s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 615s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 615s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 615s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 615s # #else /* !G_ENABLE_DEBUG */ 615s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 615s # * Do not access GValues directly in your code. Instead, use the 615s # * g_value_get_*() functions 615s # */ 615s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 615s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 615s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 615s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 615s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 615s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 615s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 615s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 615s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 615s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 615s # #endif /* !G_ENABLE_DEBUG */ 615s # 615s # typedef struct 615s # { 615s # GDBusArgInfo parent_struct; 615s # gboolean use_gvariant; 615s # } _ExtendedGDBusArgInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusMethodInfo parent_struct; 615s # const gchar *signal_name; 615s # gboolean pass_fdlist; 615s # } _ExtendedGDBusMethodInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusSignalInfo parent_struct; 615s # const gchar *signal_name; 615s # } _ExtendedGDBusSignalInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusPropertyInfo parent_struct; 615s # const gchar *hyphen_name; 615s # guint use_gvariant : 1; 615s # guint emits_changed_signal : 1; 615s # } _ExtendedGDBusPropertyInfo; 615s # 615s # typedef struct 615s # { 615s # GDBusInterfaceInfo parent_struct; 615s # const gchar *hyphen_name; 615s # } _ExtendedGDBusInterfaceInfo; 615s # 615s # typedef struct 615s # { 615s # const _ExtendedGDBusPropertyInfo *info; 615s # guint prop_id; 615s # GValue orig_value; /* the value before the change */ 615s # } ChangedProperty; 615s # 615s # static void 615s # _changed_property_free (ChangedProperty *data) 615s # { 615s # g_value_unset (&data->orig_value); 615s # g_free (data); 615s # } 615s # 615s # static gboolean 615s # _g_strv_equal0 (gchar **a, gchar **b) 615s # { 615s # gboolean ret = FALSE; 615s # guint n; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # if (g_strv_length (a) != g_strv_length (b)) 615s # goto out; 615s # for (n = 0; a[n] != NULL; n++) 615s # if (g_strcmp0 (a[n], b[n]) != 0) 615s # goto out; 615s # ret = TRUE; 615s # out: 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _g_variant_equal0 (GVariant *a, GVariant *b) 615s # { 615s # gboolean ret = FALSE; 615s # if (a == NULL && b == NULL) 615s # { 615s # ret = TRUE; 615s # goto out; 615s # } 615s # if (a == NULL || b == NULL) 615s # goto out; 615s # ret = g_variant_equal (a, b); 615s # out: 615s # return ret; 615s # } 615s # 615s # G_GNUC_UNUSED static gboolean 615s # _g_value_equal (const GValue *a, const GValue *b) 615s # { 615s # gboolean ret = FALSE; 615s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 615s # switch (G_VALUE_TYPE (a)) 615s # { 615s # case G_TYPE_BOOLEAN: 615s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 615s # break; 615s # case G_TYPE_UCHAR: 615s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 615s # break; 615s # case G_TYPE_INT: 615s # ret = (g_value_get_int (a) == g_value_get_int (b)); 615s # break; 615s # case G_TYPE_UINT: 615s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 615s # break; 615s # case G_TYPE_INT64: 615s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 615s # break; 615s # case G_TYPE_UINT64: 615s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 615s # break; 615s # case G_TYPE_DOUBLE: 615s # { 615s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 615s # gdouble da = g_value_get_double (a); 615s # gdouble db = g_value_get_double (b); 615s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 615s # } 615s # break; 615s # case G_TYPE_STRING: 615s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 615s # break; 615s # case G_TYPE_VARIANT: 615s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 615s # break; 615s # default: 615s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 615s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 615s # else 615s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 615s # break; 615s # } 615s # return ret; 615s # } 615s # 615s # static void 615s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 615s # GClosure *closure, 615s # GValue *return_value, 615s # unsigned int n_param_values, 615s # const GValue *param_values, 615s # void *invocation_hint G_GNUC_UNUSED, 615s # void *marshal_data) 615s # { 615s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 615s # (void *data1, 615s # GDBusMethodInvocation *arg_method_invocation, 615s # void *data2); 615s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 615s # GCClosure *cc = (GCClosure*) closure; 615s # void *data1, *data2; 615s # gboolean v_return; 615s # 615s # g_return_if_fail (return_value != NULL); 615s # g_return_if_fail (n_param_values == 2); 615s # 615s # if (G_CCLOSURE_SWAP_DATA (closure)) 615s # { 615s # data1 = closure->data; 615s # data2 = g_value_peek_pointer (param_values + 0); 615s # } 615s # else 615s # { 615s # data1 = g_value_peek_pointer (param_values + 0); 615s # data2 = closure->data; 615s # } 615s # 615s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 615s # (marshal_data ? marshal_data : cc->callback); 615s # 615s # v_return = 615s # callback (data1, 615s # g_marshal_value_peek_object (param_values + 1), 615s # data2); 615s # 615s # g_value_set_boolean (return_value, v_return); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ 615s # * Code for interface org.project.CallableIface 615s # * ------------------------------------------------------------------------ 615s # */ 615s # 615s # /** 615s # * SECTION:OrgProjectCallableIface 615s # * @title: OrgProjectCallableIface 615s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 615s # * 615s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 615s # */ 615s # 615s # /* ---- Introspection data for org.project.CallableIface ---- */ 615s # 615s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 615s # { 615s # { 615s # -1, 615s # (gchar *) "SimpleMethod", 615s # NULL, 615s # NULL, 615s # NULL 615s # }, 615s # "handle-simple-method", 615s # FALSE 615s # }; 615s # 615s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 615s # { 615s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 615s # NULL 615s # }; 615s # 615s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 615s # { 615s # { 615s # -1, 615s # (gchar *) "org.project.CallableIface", 615s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 615s # NULL, 615s # NULL, 615s # NULL 615s # }, 615s # "org-project-callable-iface", 615s # }; 615s # 615s # 615s # /** 615s # * org_project_callable_iface_interface_info: 615s # * 615s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 615s # * 615s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 615s # */ 615s # GDBusInterfaceInfo * 615s # org_project_callable_iface_interface_info (void) 615s # { 615s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_override_properties: 615s # * @klass: The class structure for a #GObject derived class. 615s # * @property_id_begin: The property id to assign to the first overridden property. 615s # * 615s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 615s # * The properties are overridden in the order they are defined. 615s # * 615s # * Returns: The last property id. 615s # */ 615s # guint 615s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 615s # { 615s # return property_id_begin - 1; 615s # } 615s # 615s # 615s # inline static void 615s # org_project_callable_iface_method_marshal_simple_method ( 615s # GClosure *closure, 615s # GValue *return_value, 615s # unsigned int n_param_values, 615s # const GValue *param_values, 615s # void *invocation_hint, 615s # void *marshal_data) 615s # { 615s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 615s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 615s # } 615s # 615s # 615s # /** 615s # * OrgProjectCallableIface: 615s # * 615s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 615s # */ 615s # 615s # /** 615s # * OrgProjectCallableIfaceIface: 615s # * @parent_iface: The parent interface. 615s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 615s # * 615s # * Virtual table for the D-Bus interface org.project.CallableIface. 615s # */ 615s # 615s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 615s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 615s # 615s # static void 615s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 615s # { 615s # /* GObject signals for incoming D-Bus method calls: */ 615s # /** 615s # * OrgProjectCallableIface::handle-simple-method: 615s # * @object: A #OrgProjectCallableIface. 615s # * @invocation: A #GDBusMethodInvocation. 615s # * 615s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 615s # * 615s # * 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. 615s # * 615s # * 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. 615s # */ 615s # g_signal_new ("handle-simple-method", 615s # G_TYPE_FROM_INTERFACE (iface), 615s # G_SIGNAL_RUN_LAST, 615s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 615s # g_signal_accumulator_true_handled, 615s # NULL, 615s # org_project_callable_iface_method_marshal_simple_method, 615s # G_TYPE_BOOLEAN, 615s # 1, 615s # G_TYPE_DBUS_METHOD_INVOCATION); 615s # 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_call_simple_method: 615s # * @proxy: A #OrgProjectCallableIfaceProxy. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 615s # * 615s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 615s # */ 615s # void 615s # org_project_callable_iface_call_simple_method ( 615s # OrgProjectCallableIface *proxy, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 615s # "SimpleMethod", 615s # g_variant_new ("()"), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # cancellable, 615s # callback, 615s # user_data); 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_call_simple_method_finish: 615s # * @proxy: A #OrgProjectCallableIfaceProxy. 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 615s # * @error: Return location for error or %NULL. 615s # * 615s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 615s # * 615s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 615s # */ 615s # gboolean 615s # org_project_callable_iface_call_simple_method_finish ( 615s # OrgProjectCallableIface *proxy, 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GVariant *_ret; 615s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 615s # if (_ret == NULL) 615s # goto _out; 615s # g_variant_get (_ret, 615s # "()"); 615s # g_variant_unref (_ret); 615s # _out: 615s # return _ret != NULL; 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_call_simple_method_sync: 615s # * @proxy: A #OrgProjectCallableIfaceProxy. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL. 615s # * 615s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 615s # * 615s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 615s # * 615s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 615s # */ 615s # gboolean 615s # org_project_callable_iface_call_simple_method_sync ( 615s # OrgProjectCallableIface *proxy, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GVariant *_ret; 615s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 615s # "SimpleMethod", 615s # g_variant_new ("()"), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # cancellable, 615s # error); 615s # if (_ret == NULL) 615s # goto _out; 615s # g_variant_get (_ret, 615s # "()"); 615s # g_variant_unref (_ret); 615s # _out: 615s # return _ret != NULL; 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_complete_simple_method: 615s # * @object: A #OrgProjectCallableIface. 615s # * @invocation: (transfer full): A #GDBusMethodInvocation. 615s # * 615s # * 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. 615s # * 615s # * This method will free @invocation, you cannot use it afterwards. 615s # */ 615s # void 615s # org_project_callable_iface_complete_simple_method ( 615s # OrgProjectCallableIface *object G_GNUC_UNUSED, 615s # GDBusMethodInvocation *invocation) 615s # { 615s # g_dbus_method_invocation_return_value (invocation, 615s # g_variant_new ("()")); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * OrgProjectCallableIfaceProxy: 615s # * 615s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * OrgProjectCallableIfaceProxyClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for #OrgProjectCallableIfaceProxy. 615s # */ 615s # 615s # struct _OrgProjectCallableIfaceProxyPrivate 615s # { 615s # GData *qdata; 615s # }; 615s # 615s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 615s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 615s # 615s # #endif 615s # static void 615s # org_project_callable_iface_proxy_finalize (GObject *object) 615s # { 615s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 615s # g_datalist_clear (&proxy->priv->qdata); 615s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 615s # guint prop_id G_GNUC_UNUSED, 615s # GValue *value G_GNUC_UNUSED, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 615s # guint prop_id G_GNUC_UNUSED, 615s # const GValue *value G_GNUC_UNUSED, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 615s # const gchar *sender_name G_GNUC_UNUSED, 615s # const gchar *signal_name, 615s # GVariant *parameters) 615s # { 615s # _ExtendedGDBusSignalInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # gsize n; 615s # guint signal_id; 615s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 615s # if (info == NULL) 615s # return; 615s # num_params = g_variant_n_children (parameters); 615s # paramv = g_new0 (GValue, num_params + 1); 615s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 615s # g_value_set_object (¶mv[0], proxy); 615s # g_variant_iter_init (&iter, parameters); 615s # n = 1; 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 615s # g_signal_emitv (paramv, signal_id, 0, NULL); 615s # for (n = 0; n < num_params + 1; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 615s # GVariant *changed_properties, 615s # const gchar *const *invalidated_properties) 615s # { 615s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 615s # guint n; 615s # const gchar *key; 615s # GVariantIter *iter; 615s # _ExtendedGDBusPropertyInfo *info; 615s # g_variant_get (changed_properties, "a{sv}", &iter); 615s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 615s # g_datalist_remove_data (&proxy->priv->qdata, key); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # g_variant_iter_free (iter); 615s # for (n = 0; invalidated_properties[n] != NULL; n++) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 615s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 615s # #else 615s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 615s # #endif 615s # 615s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusProxyClass *proxy_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 615s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 615s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 615s # 615s # proxy_class = G_DBUS_PROXY_CLASS (klass); 615s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 615s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_proxy_new: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 615s # * 615s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # org_project_callable_iface_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_proxy_new_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 615s # * 615s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectCallableIface * 615s # org_project_callable_iface_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return ORG_PROJECT_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_proxy_new_sync: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectCallableIface * 615s # org_project_callable_iface_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return ORG_PROJECT_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /** 615s # * org_project_callable_iface_proxy_new_for_bus: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 615s # * 615s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # org_project_callable_iface_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_proxy_new_for_bus_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 615s # * 615s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectCallableIface * 615s # org_project_callable_iface_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return ORG_PROJECT_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_proxy_new_for_bus_sync: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectCallableIface * 615s # org_project_callable_iface_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return ORG_PROJECT_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * OrgProjectCallableIfaceSkeleton: 615s # * 615s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * OrgProjectCallableIfaceSkeletonClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for #OrgProjectCallableIfaceSkeleton. 615s # */ 615s # 615s # struct _OrgProjectCallableIfaceSkeletonPrivate 615s # { 615s # GValue *properties; 615s # GList *changed_properties; 615s # GSource *changed_properties_idle_source; 615s # GMainContext *context; 615s # GMutex lock; 615s # }; 615s # 615s # static void 615s # _org_project_callable_iface_skeleton_handle_method_call ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name, 615s # const gchar *method_name, 615s # GVariant *parameters, 615s # GDBusMethodInvocation *invocation, 615s # gpointer user_data) 615s # { 615s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 615s # _ExtendedGDBusMethodInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # guint num_extra; 615s # gsize n; 615s # guint signal_id; 615s # GValue return_value = G_VALUE_INIT; 615s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 615s # g_assert (info != NULL); 615s # num_params = g_variant_n_children (parameters); 615s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 615s # n = 0; 615s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 615s # g_value_set_object (¶mv[n++], skeleton); 615s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 615s # g_value_set_object (¶mv[n++], invocation); 615s # if (info->pass_fdlist) 615s # { 615s # #ifdef G_OS_UNIX 615s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 615s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 615s # #else 615s # g_assert_not_reached (); 615s # #endif 615s # } 615s # g_variant_iter_init (&iter, parameters); 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 615s # g_value_init (&return_value, G_TYPE_BOOLEAN); 615s # g_signal_emitv (paramv, signal_id, 0, &return_value); 615s # if (!g_value_get_boolean (&return_value)) 615s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 615s # g_value_unset (&return_value); 615s # for (n = 0; n < num_params + num_extra; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static GVariant * 615s # _org_project_callable_iface_skeleton_handle_get_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # GVariant *ret; 615s # ret = NULL; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # g_value_init (&value, pspec->value_type); 615s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_value_unset (&value); 615s # } 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _org_project_callable_iface_skeleton_handle_set_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GVariant *variant, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # gboolean ret; 615s # ret = FALSE; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # if (info->use_gvariant) 615s # g_value_set_variant (&value, variant); 615s # else 615s # g_dbus_gvariant_to_gvalue (variant, &value); 615s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # g_value_unset (&value); 615s # ret = TRUE; 615s # } 615s # return ret; 615s # } 615s # 615s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 615s # { 615s # _org_project_callable_iface_skeleton_handle_method_call, 615s # _org_project_callable_iface_skeleton_handle_get_property, 615s # _org_project_callable_iface_skeleton_handle_set_property, 615s # {NULL} 615s # }; 615s # 615s # static GDBusInterfaceInfo * 615s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return org_project_callable_iface_interface_info (); 615s # } 615s # 615s # static GDBusInterfaceVTable * 615s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 615s # } 615s # 615s # static GVariant * 615s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 615s # 615s # GVariantBuilder builder; 615s # guint n; 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #else 615s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #endif 615s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 615s # goto out; 615s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 615s # { 615s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 615s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 615s # { 615s # GVariant *value; 615s # 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); 615s # if (value != NULL) 615s # { 615s # g_variant_take_ref (value); 615s # g_variant_builder_add (&builder, "{sv}", info->name, value); 615s # g_variant_unref (value); 615s # } 615s # } 615s # } 615s # out: 615s # return g_variant_builder_end (&builder); 615s # } 615s # 615s # static void 615s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 615s # 615s # #endif 615s # static void 615s # org_project_callable_iface_skeleton_finalize (GObject *object) 615s # { 615s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # g_main_context_unref (skeleton->priv->context); 615s # g_mutex_clear (&skeleton->priv->lock); 615s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 615s # #else 615s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 615s # #endif 615s # 615s # g_mutex_init (&skeleton->priv->lock); 615s # skeleton->priv->context = g_main_context_ref_thread_default (); 615s # } 615s # 615s # static void 615s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusInterfaceSkeletonClass *skeleton_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 615s # 615s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 615s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 615s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 615s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 615s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # /** 615s # * org_project_callable_iface_skeleton_new: 615s # * 615s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 615s # * 615s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 615s # */ 615s # OrgProjectCallableIface * 615s # org_project_callable_iface_skeleton_new (void) 615s # { 615s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ 615s # * Code for interface org.project.OtherCallableIface 615s # * ------------------------------------------------------------------------ 615s # */ 615s # 615s # /** 615s # * SECTION:OrgProjectOtherCallableIface 615s # * @title: OrgProjectOtherCallableIface 615s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 615s # * 615s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 615s # */ 615s # 615s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 615s # 615s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 615s # { 615s # { 615s # -1, 615s # (gchar *) "SimpleMethod", 615s # NULL, 615s # NULL, 615s # NULL 615s # }, 615s # "handle-simple-method", 615s # FALSE 615s # }; 615s # 615s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 615s # { 615s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 615s # NULL 615s # }; 615s # 615s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 615s # { 615s # { 615s # -1, 615s # (gchar *) "org.project.OtherCallableIface", 615s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 615s # NULL, 615s # NULL, 615s # NULL 615s # }, 615s # "org-project-other-callable-iface", 615s # }; 615s # 615s # 615s # /** 615s # * org_project_other_callable_iface_interface_info: 615s # * 615s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 615s # * 615s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 615s # */ 615s # GDBusInterfaceInfo * 615s # org_project_other_callable_iface_interface_info (void) 615s # { 615s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_override_properties: 615s # * @klass: The class structure for a #GObject derived class. 615s # * @property_id_begin: The property id to assign to the first overridden property. 615s # * 615s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 615s # * The properties are overridden in the order they are defined. 615s # * 615s # * Returns: The last property id. 615s # */ 615s # guint 615s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 615s # { 615s # return property_id_begin - 1; 615s # } 615s # 615s # 615s # inline static void 615s # org_project_other_callable_iface_method_marshal_simple_method ( 615s # GClosure *closure, 615s # GValue *return_value, 615s # unsigned int n_param_values, 615s # const GValue *param_values, 615s # void *invocation_hint, 615s # void *marshal_data) 615s # { 615s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 615s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 615s # } 615s # 615s # 615s # /** 615s # * OrgProjectOtherCallableIface: 615s # * 615s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 615s # */ 615s # 615s # /** 615s # * OrgProjectOtherCallableIfaceIface: 615s # * @parent_iface: The parent interface. 615s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 615s # * 615s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 615s # */ 615s # 615s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 615s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 615s # 615s # static void 615s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 615s # { 615s # /* GObject signals for incoming D-Bus method calls: */ 615s # /** 615s # * OrgProjectOtherCallableIface::handle-simple-method: 615s # * @object: A #OrgProjectOtherCallableIface. 615s # * @invocation: A #GDBusMethodInvocation. 615s # * 615s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 615s # * 615s # * 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. 615s # * 615s # * 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. 615s # */ 615s # g_signal_new ("handle-simple-method", 615s # G_TYPE_FROM_INTERFACE (iface), 615s # G_SIGNAL_RUN_LAST, 615s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 615s # g_signal_accumulator_true_handled, 615s # NULL, 615s # org_project_other_callable_iface_method_marshal_simple_method, 615s # G_TYPE_BOOLEAN, 615s # 1, 615s # G_TYPE_DBUS_METHOD_INVOCATION); 615s # 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_call_simple_method: 615s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 615s # * 615s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 615s # */ 615s # void 615s # org_project_other_callable_iface_call_simple_method ( 615s # OrgProjectOtherCallableIface *proxy, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 615s # "SimpleMethod", 615s # g_variant_new ("()"), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # cancellable, 615s # callback, 615s # user_data); 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_call_simple_method_finish: 615s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 615s # * @error: Return location for error or %NULL. 615s # * 615s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 615s # * 615s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 615s # */ 615s # gboolean 615s # org_project_other_callable_iface_call_simple_method_finish ( 615s # OrgProjectOtherCallableIface *proxy, 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GVariant *_ret; 615s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 615s # if (_ret == NULL) 615s # goto _out; 615s # g_variant_get (_ret, 615s # "()"); 615s # g_variant_unref (_ret); 615s # _out: 615s # return _ret != NULL; 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_call_simple_method_sync: 615s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL. 615s # * 615s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 615s # * 615s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 615s # * 615s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 615s # */ 615s # gboolean 615s # org_project_other_callable_iface_call_simple_method_sync ( 615s # OrgProjectOtherCallableIface *proxy, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GVariant *_ret; 615s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 615s # "SimpleMethod", 615s # g_variant_new ("()"), 615s # G_DBUS_CALL_FLAGS_NONE, 615s # -1, 615s # cancellable, 615s # error); 615s # if (_ret == NULL) 615s # goto _out; 615s # g_variant_get (_ret, 615s # "()"); 615s # g_variant_unref (_ret); 615s # _out: 615s # return _ret != NULL; 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_complete_simple_method: 615s # * @object: A #OrgProjectOtherCallableIface. 615s # * @invocation: (transfer full): A #GDBusMethodInvocation. 615s # * 615s # * 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. 615s # * 615s # * This method will free @invocation, you cannot use it afterwards. 615s # */ 615s # void 615s # org_project_other_callable_iface_complete_simple_method ( 615s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 615s # GDBusMethodInvocation *invocation) 615s # { 615s # g_dbus_method_invocation_return_value (invocation, 615s # g_variant_new ("()")); 615s # } 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * OrgProjectOtherCallableIfaceProxy: 615s # * 615s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * OrgProjectOtherCallableIfaceProxyClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 615s # */ 615s # 615s # struct _OrgProjectOtherCallableIfaceProxyPrivate 615s # { 615s # GData *qdata; 615s # }; 615s # 615s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 615s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 615s # 615s # #endif 615s # static void 615s # org_project_other_callable_iface_proxy_finalize (GObject *object) 615s # { 615s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 615s # g_datalist_clear (&proxy->priv->qdata); 615s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 615s # guint prop_id G_GNUC_UNUSED, 615s # GValue *value G_GNUC_UNUSED, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 615s # guint prop_id G_GNUC_UNUSED, 615s # const GValue *value G_GNUC_UNUSED, 615s # GParamSpec *pspec G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 615s # const gchar *sender_name G_GNUC_UNUSED, 615s # const gchar *signal_name, 615s # GVariant *parameters) 615s # { 615s # _ExtendedGDBusSignalInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # gsize n; 615s # guint signal_id; 615s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 615s # if (info == NULL) 615s # return; 615s # num_params = g_variant_n_children (parameters); 615s # paramv = g_new0 (GValue, num_params + 1); 615s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 615s # g_value_set_object (¶mv[0], proxy); 615s # g_variant_iter_init (&iter, parameters); 615s # n = 1; 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 615s # g_signal_emitv (paramv, signal_id, 0, NULL); 615s # for (n = 0; n < num_params + 1; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 615s # GVariant *changed_properties, 615s # const gchar *const *invalidated_properties) 615s # { 615s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 615s # guint n; 615s # const gchar *key; 615s # GVariantIter *iter; 615s # _ExtendedGDBusPropertyInfo *info; 615s # g_variant_get (changed_properties, "a{sv}", &iter); 615s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 615s # g_datalist_remove_data (&proxy->priv->qdata, key); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # g_variant_iter_free (iter); 615s # for (n = 0; invalidated_properties[n] != NULL; n++) 615s # { 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 615s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 615s # if (info != NULL) 615s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 615s # } 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 615s # #else 615s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 615s # #endif 615s # 615s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusProxyClass *proxy_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 615s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 615s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 615s # 615s # proxy_class = G_DBUS_PROXY_CLASS (klass); 615s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 615s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_proxy_new: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 615s # * 615s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # org_project_other_callable_iface_proxy_new ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_proxy_new_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 615s # * 615s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectOtherCallableIface * 615s # org_project_other_callable_iface_proxy_new_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_proxy_new_sync: 615s # * @connection: A #GDBusConnection. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectOtherCallableIface * 615s # org_project_other_callable_iface_proxy_new_sync ( 615s # GDBusConnection *connection, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /** 615s # * org_project_other_callable_iface_proxy_new_for_bus: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 615s # * @user_data: User data to pass to @callback. 615s # * 615s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 615s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 615s # * 615s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 615s # */ 615s # void 615s # org_project_other_callable_iface_proxy_new_for_bus ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GAsyncReadyCallback callback, 615s # gpointer user_data) 615s # { 615s # 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); 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 615s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 615s # * @error: Return location for error or %NULL 615s # * 615s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 615s # * 615s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectOtherCallableIface * 615s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 615s # GAsyncResult *res, 615s # GError **error) 615s # { 615s # GObject *ret; 615s # GObject *source_object; 615s # source_object = g_async_result_get_source_object (res); 615s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 615s # g_object_unref (source_object); 615s # if (ret != NULL) 615s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 615s # * @bus_type: A #GBusType. 615s # * @flags: Flags from the #GDBusProxyFlags enumeration. 615s # * @name: A bus name (well-known or unique). 615s # * @object_path: An object path. 615s # * @cancellable: (nullable): A #GCancellable or %NULL. 615s # * @error: Return location for error or %NULL 615s # * 615s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 615s # * 615s # * The calling thread is blocked until a reply is received. 615s # * 615s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 615s # * 615s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 615s # */ 615s # OrgProjectOtherCallableIface * 615s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 615s # GBusType bus_type, 615s # GDBusProxyFlags flags, 615s # const gchar *name, 615s # const gchar *object_path, 615s # GCancellable *cancellable, 615s # GError **error) 615s # { 615s # GInitable *ret; 615s # 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); 615s # if (ret != NULL) 615s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 615s # else 615s # return NULL; 615s # } 615s # 615s # 615s # /* ------------------------------------------------------------------------ */ 615s # 615s # /** 615s # * OrgProjectOtherCallableIfaceSkeleton: 615s # * 615s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 615s # */ 615s # 615s # /** 615s # * OrgProjectOtherCallableIfaceSkeletonClass: 615s # * @parent_class: The parent class. 615s # * 615s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 615s # */ 615s # 615s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 615s # { 615s # GValue *properties; 615s # GList *changed_properties; 615s # GSource *changed_properties_idle_source; 615s # GMainContext *context; 615s # GMutex lock; 615s # }; 615s # 615s # static void 615s # _org_project_other_callable_iface_skeleton_handle_method_call ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name, 615s # const gchar *method_name, 615s # GVariant *parameters, 615s # GDBusMethodInvocation *invocation, 615s # gpointer user_data) 615s # { 615s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 615s # _ExtendedGDBusMethodInfo *info; 615s # GVariantIter iter; 615s # GVariant *child; 615s # GValue *paramv; 615s # gsize num_params; 615s # guint num_extra; 615s # gsize n; 615s # guint signal_id; 615s # GValue return_value = G_VALUE_INIT; 615s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 615s # g_assert (info != NULL); 615s # num_params = g_variant_n_children (parameters); 615s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 615s # n = 0; 615s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 615s # g_value_set_object (¶mv[n++], skeleton); 615s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 615s # g_value_set_object (¶mv[n++], invocation); 615s # if (info->pass_fdlist) 615s # { 615s # #ifdef G_OS_UNIX 615s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 615s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 615s # #else 615s # g_assert_not_reached (); 615s # #endif 615s # } 615s # g_variant_iter_init (&iter, parameters); 615s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 615s # { 615s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 615s # if (arg_info->use_gvariant) 615s # { 615s # g_value_init (¶mv[n], G_TYPE_VARIANT); 615s # g_value_set_variant (¶mv[n], child); 615s # n++; 615s # } 615s # else 615s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 615s # g_variant_unref (child); 615s # } 615s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 615s # g_value_init (&return_value, G_TYPE_BOOLEAN); 615s # g_signal_emitv (paramv, signal_id, 0, &return_value); 615s # if (!g_value_get_boolean (&return_value)) 615s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 615s # g_value_unset (&return_value); 615s # for (n = 0; n < num_params + num_extra; n++) 615s # g_value_unset (¶mv[n]); 615s # g_free (paramv); 615s # } 615s # 615s # static GVariant * 615s # _org_project_other_callable_iface_skeleton_handle_get_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # GVariant *ret; 615s # ret = NULL; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # g_value_init (&value, pspec->value_type); 615s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 615s # g_value_unset (&value); 615s # } 615s # return ret; 615s # } 615s # 615s # static gboolean 615s # _org_project_other_callable_iface_skeleton_handle_set_property ( 615s # GDBusConnection *connection G_GNUC_UNUSED, 615s # const gchar *sender G_GNUC_UNUSED, 615s # const gchar *object_path G_GNUC_UNUSED, 615s # const gchar *interface_name G_GNUC_UNUSED, 615s # const gchar *property_name, 615s # GVariant *variant, 615s # GError **error, 615s # gpointer user_data) 615s # { 615s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 615s # GValue value = G_VALUE_INIT; 615s # GParamSpec *pspec; 615s # _ExtendedGDBusPropertyInfo *info; 615s # gboolean ret; 615s # ret = FALSE; 615s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 615s # g_assert (info != NULL); 615s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 615s # if (pspec == NULL) 615s # { 615s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 615s # } 615s # else 615s # { 615s # if (info->use_gvariant) 615s # g_value_set_variant (&value, variant); 615s # else 615s # g_dbus_gvariant_to_gvalue (variant, &value); 615s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 615s # g_value_unset (&value); 615s # ret = TRUE; 615s # } 615s # return ret; 615s # } 615s # 615s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 615s # { 615s # _org_project_other_callable_iface_skeleton_handle_method_call, 615s # _org_project_other_callable_iface_skeleton_handle_get_property, 615s # _org_project_other_callable_iface_skeleton_handle_set_property, 615s # {NULL} 615s # }; 615s # 615s # static GDBusInterfaceInfo * 615s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return org_project_other_callable_iface_interface_info (); 615s # } 615s # 615s # static GDBusInterfaceVTable * 615s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 615s # { 615s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 615s # } 615s # 615s # static GVariant * 615s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 615s # { 615s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 615s # 615s # GVariantBuilder builder; 615s # guint n; 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 615s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #else 615s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 615s # #endif 615s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 615s # goto out; 615s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 615s # { 615s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 615s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 615s # { 615s # GVariant *value; 615s # 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); 615s # if (value != NULL) 615s # { 615s # g_variant_take_ref (value); 615s # g_variant_builder_add (&builder, "{sv}", info->name, value); 615s # g_variant_unref (value); 615s # } 615s # } 615s # } 615s # out: 615s # return g_variant_builder_end (&builder); 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 615s # 615s # #else 615s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 615s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 615s # 615s # #endif 615s # static void 615s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 615s # { 615s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 615s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 615s # if (skeleton->priv->changed_properties_idle_source != NULL) 615s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 615s # g_main_context_unref (skeleton->priv->context); 615s # g_mutex_clear (&skeleton->priv->lock); 615s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 615s # { 615s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 615s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 615s # #else 615s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 615s # #endif 615s # 615s # g_mutex_init (&skeleton->priv->lock); 615s # skeleton->priv->context = g_main_context_ref_thread_default (); 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 615s # { 615s # GObjectClass *gobject_class; 615s # GDBusInterfaceSkeletonClass *skeleton_class; 615s # 615s # gobject_class = G_OBJECT_CLASS (klass); 615s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 615s # 615s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 615s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 615s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 615s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 615s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 615s # 615s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 615s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 615s # #endif 615s # } 615s # 615s # static void 615s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 615s # { 615s # } 615s # 615s # /** 615s # * org_project_other_callable_iface_skeleton_new: 615s # * 615s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 615s # * 615s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 615s # */ 615s # OrgProjectOtherCallableIface * 615s # org_project_other_callable_iface_skeleton_new (void) 615s # { 615s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 615s # } 615s # Error: 616s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 616s # gdbus-codegen: /usr/bin/gdbus-codegen 616s # tmpdir: /tmp/tmpekiliy1u 616s # /tmp/tmpekiliy1u/tmpvvk9v80l.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpvvk9v80l.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # gboolean arg_arg_b, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_boolean (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_b", 616s # (gchar *) "b", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodB", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-b", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_b ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_b: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-b", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_b, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_b: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_b: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_b ( 616s # OrgProjectUsefulInterface *proxy, 616s # gboolean arg_arg_b, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodB", 616s # g_variant_new ("(b)", 616s # arg_arg_b), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_b_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_b_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_b_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_b: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_b_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gboolean arg_arg_b, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodB", 616s # g_variant_new ("(b)", 616s # arg_arg_b), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_b: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_b ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpy9dra18d.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpy9dra18d.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # guchar arg_arg_y, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_uchar (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_y", 616s # (gchar *) "y", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodY", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-y", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_y ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_y: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-y", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_y, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_y: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_y: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_y ( 616s # OrgProjectUsefulInterface *proxy, 616s # guchar arg_arg_y, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodY", 616s # g_variant_new ("(y)", 616s # arg_arg_y), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_y_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_y_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_y_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_y: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_y_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guchar arg_arg_y, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodY", 616s # g_variant_new ("(y)", 616s # arg_arg_y), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_y: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_y ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmptqsx7sd2.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmptqsx7sd2.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # gint16 arg_arg_n, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_int (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_n", 616s # (gchar *) "n", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodN", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-n", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_n ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_n: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-n", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_n, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_n: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_n: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_n ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint16 arg_arg_n, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodN", 616s # g_variant_new ("(n)", 616s # arg_arg_n), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_n_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_n_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_n_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_n: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_n_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint16 arg_arg_n, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodN", 616s # g_variant_new ("(n)", 616s # arg_arg_n), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_n: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_n ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpzb74pa0r.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpzb74pa0r.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # guint16 arg_arg_q, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_uint (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_q", 616s # (gchar *) "q", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodQ", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-q", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_q ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_q: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-q", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_q, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_q: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_q: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_q ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint16 arg_arg_q, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodQ", 616s # g_variant_new ("(q)", 616s # arg_arg_q), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_q_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_q_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_q_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_q: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_q_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint16 arg_arg_q, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodQ", 616s # g_variant_new ("(q)", 616s # arg_arg_q), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_q: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_q ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpzt772on_.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpzt772on_.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # gint arg_arg_i, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_int (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_i", 616s # (gchar *) "i", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodI", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-i", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_i ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_i: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-i", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_i, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_i: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_i: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_i ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint arg_arg_i, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodI", 616s # g_variant_new ("(i)", 616s # arg_arg_i), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_i_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_i_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_i_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_i: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_i_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint arg_arg_i, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodI", 616s # g_variant_new ("(i)", 616s # arg_arg_i), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_i: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_i ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmppan2o04c.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmppan2o04c.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # guint arg_arg_u, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_uint (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_u", 616s # (gchar *) "u", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodU", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-u", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_u ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_u: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-u", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_u, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_u: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_u: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_u ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint arg_arg_u, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodU", 616s # g_variant_new ("(u)", 616s # arg_arg_u), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_u_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_u_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_u_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_u: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_u_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint arg_arg_u, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodU", 616s # g_variant_new ("(u)", 616s # arg_arg_u), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_u: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_u ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpk5fxa3lk.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpk5fxa3lk.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # gint64 arg_arg_x, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_int64 (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_x", 616s # (gchar *) "x", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodX", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-x", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_x ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_x: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-x", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_x, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_x: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_x: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_x ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint64 arg_arg_x, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodX", 616s # g_variant_new ("(x)", 616s # arg_arg_x), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_x_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_x_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_x_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_x: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_x_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint64 arg_arg_x, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodX", 616s # g_variant_new ("(x)", 616s # arg_arg_x), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_x: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_x ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpwaq8n8ru.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpwaq8n8ru.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # guint64 arg_arg_t, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_uint64 (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_t", 616s # (gchar *) "t", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodT", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-t", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_t ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_t: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-t", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_t, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_t: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_t: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_t ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint64 arg_arg_t, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodT", 616s # g_variant_new ("(t)", 616s # arg_arg_t), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_t_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_t_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_t_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_t: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_t_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint64 arg_arg_t, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodT", 616s # g_variant_new ("(t)", 616s # arg_arg_t), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_t: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_t ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmp1j1nnldf.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmp1j1nnldf.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # gdouble arg_arg_d, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_double (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_d", 616s # (gchar *) "d", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodD", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-d", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_d ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_d: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-d", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_d, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_d: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_d: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_d ( 616s # OrgProjectUsefulInterface *proxy, 616s # gdouble arg_arg_d, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodD", 616s # g_variant_new ("(d)", 616s # arg_arg_d), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_d_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_d_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_d_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_d: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_d_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gdouble arg_arg_d, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodD", 616s # g_variant_new ("(d)", 616s # arg_arg_d), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_d: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_d ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpfp4mjl2j.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpfp4mjl2j.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *arg_arg_s, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_string (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_s", 616s # (gchar *) "s", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodS", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-s", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_s ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_s: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-s", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_s, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_s: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_s: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_s ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_s, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodS", 616s # g_variant_new ("(s)", 616s # arg_arg_s), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_s_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_s_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_s_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_s: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_s_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_s, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodS", 616s # g_variant_new ("(s)", 616s # arg_arg_s), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_s: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_s ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpi02x01ch.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpi02x01ch.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *arg_arg_o, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_string (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_o", 616s # (gchar *) "o", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodO", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-o", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_o ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_o: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-o", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_o, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_o: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_o: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_o ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_o, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodO", 616s # g_variant_new ("(o)", 616s # arg_arg_o), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_o_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_o_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_o_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_o: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_o_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_o, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodO", 616s # g_variant_new ("(o)", 616s # arg_arg_o), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_o: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_o ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpo3hs4val.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpo3hs4val.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *arg_arg_g, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_string (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_g", 616s # (gchar *) "g", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodG", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-g", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_g ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_g: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-g", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_g, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_g: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_g: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_g ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_g, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodG", 616s # g_variant_new ("(g)", 616s # arg_arg_g), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_g_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_g_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_g_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_g: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_g_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_g, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodG", 616s # g_variant_new ("(g)", 616s # arg_arg_g), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_g: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_g ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpr8abgu19.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpr8abgu19.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # GVariant *arg_arg_h, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_variant (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_h", 616s # (gchar *) "h", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodH", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-h", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_h ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_h: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-h", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_h, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_h: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_h: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_h ( 616s # OrgProjectUsefulInterface *proxy, 616s # GVariant *arg_arg_h, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodH", 616s # g_variant_new ("(@h)", 616s # arg_arg_h), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_h_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_h_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_h_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_h: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_h_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # GVariant *arg_arg_h, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodH", 616s # g_variant_new ("(@h)", 616s # arg_arg_h), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_h: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_h ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmpbge_oe9f.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmpbge_oe9f.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *arg_arg_ay, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_string (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_ay", 616s # (gchar *) "ay", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodAy", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-ay", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_ay: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-ay", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_ay, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_ay: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_ay: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_ay ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_ay, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAy", 616s # g_variant_new ("(^ay)", 616s # arg_arg_ay), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_ay_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_ay_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_ay_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_ay: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_ay_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *arg_arg_ay, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAy", 616s # g_variant_new ("(^ay)", 616s # arg_arg_ay), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_ay: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_ay ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmp0o65o861.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmp0o65o861.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *const *arg_arg_as, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_boxed (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_as", 616s # (gchar *) "as", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodAs", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-as", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_as ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_as: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-as", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_as, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_as: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_as: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_as ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *const *arg_arg_as, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAs", 616s # g_variant_new ("(^as)", 616s # arg_arg_as), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_as_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_as_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_as_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_as: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_as_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *const *arg_arg_as, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAs", 616s # g_variant_new ("(^as)", 616s # arg_arg_as), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_as: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_as ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmp1nqmftfw.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmp1nqmftfw.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *const *arg_arg_ao, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_boxed (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_ao", 616s # (gchar *) "ao", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodAo", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-ao", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_ao: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-ao", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_ao, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_ao: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_ao: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_ao ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *const *arg_arg_ao, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAo", 616s # g_variant_new ("(^ao)", 616s # arg_arg_ao), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_ao_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_ao_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_ao_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_ao: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_ao_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *const *arg_arg_ao, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAo", 616s # g_variant_new ("(^ao)", 616s # arg_arg_ao), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_ao: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_ao ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmp_q3ug9za.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmp_q3ug9za.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # const gchar *const *arg_arg_aay, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_boxed (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_aay", 616s # (gchar *) "aay", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodAay", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-aay", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_aay: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-aay", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_aay, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_aay: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_aay: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_aay ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *const *arg_arg_aay, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAay", 616s # g_variant_new ("(^aay)", 616s # arg_arg_aay), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_aay_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_aay_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_aay_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_aay: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_aay_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # const gchar *const *arg_arg_aay, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAay", 616s # g_variant_new ("(^aay)", 616s # arg_arg_aay), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_aay: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_aay ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpekiliy1u/tmp0j05gwvn.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpekiliy1u/tmp0j05gwvn.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # GVariant *arg_arg_asv, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 3); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # g_marshal_value_peek_variant (param_values + 2), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_asv", 616s # (gchar *) "a{sv}", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodAsv", 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 616s # NULL, 616s # NULL 616s # }, 616s # "handle-single-arg-method-asv", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * @arg_arg_asv: Argument passed by remote caller. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-asv", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_asv, 616s # G_TYPE_BOOLEAN, 616s # 2, 616s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_asv: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_asv: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_asv ( 616s # OrgProjectUsefulInterface *proxy, 616s # GVariant *arg_arg_asv, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAsv", 616s # g_variant_new ("(@a{sv})", 616s # arg_arg_asv), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_asv_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_asv_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_asv_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @arg_arg_asv: Argument to pass with the method invocation. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_asv_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # GVariant *arg_arg_asv, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodAsv", 616s # g_variant_new ("(@a{sv})", 616s # arg_arg_asv), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "()"); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_asv: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_asv ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("()")); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 616s # gdbus-codegen: /usr/bin/gdbus-codegen 616s # tmpdir: /tmp/tmpo7gnv_xd 616s # /tmp/tmpo7gnv_xd/tmpw1dooqtk.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpw1dooqtk.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 2); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_b", 616s # (gchar *) "b", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodB", 616s # NULL, 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 616s # NULL 616s # }, 616s # "handle-single-arg-method-b", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_b ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-b", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_b, 616s # G_TYPE_BOOLEAN, 616s # 1, 616s # G_TYPE_DBUS_METHOD_INVOCATION); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_b: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_b ( 616s # OrgProjectUsefulInterface *proxy, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodB", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_b_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_b_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # gboolean *out_arg_b, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(b)", 616s # out_arg_b); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_b_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_b_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gboolean *out_arg_b, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodB", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(b)", 616s # out_arg_b); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_b: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * @arg_b: Parameter to return. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_b ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation, 616s # gboolean arg_b) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("(b)", 616s # arg_b)); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpo7gnv_xd/tmp44n1l2i7.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmp44n1l2i7.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 2); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_y", 616s # (gchar *) "y", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodY", 616s # NULL, 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 616s # NULL 616s # }, 616s # "handle-single-arg-method-y", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_y ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-y", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_y, 616s # G_TYPE_BOOLEAN, 616s # 1, 616s # G_TYPE_DBUS_METHOD_INVOCATION); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_y: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_y ( 616s # OrgProjectUsefulInterface *proxy, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodY", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_y_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_y_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # guchar *out_arg_y, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(y)", 616s # out_arg_y); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_y_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_y_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guchar *out_arg_y, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodY", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(y)", 616s # out_arg_y); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_y: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * @arg_y: Parameter to return. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_y ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation, 616s # guchar arg_y) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("(y)", 616s # arg_y)); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpo7gnv_xd/tmpzi6_6f_i.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpzi6_6f_i.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 2); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_n", 616s # (gchar *) "n", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodN", 616s # NULL, 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 616s # NULL 616s # }, 616s # "handle-single-arg-method-n", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_n ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-n", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_n, 616s # G_TYPE_BOOLEAN, 616s # 1, 616s # G_TYPE_DBUS_METHOD_INVOCATION); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_n: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_n ( 616s # OrgProjectUsefulInterface *proxy, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodN", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_n_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_n_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint16 *out_arg_n, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(n)", 616s # out_arg_n); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_n_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_n_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint16 *out_arg_n, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodN", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(n)", 616s # out_arg_n); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_n: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * @arg_n: Parameter to return. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_n ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation, 616s # gint16 arg_n) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("(n)", 616s # arg_n)); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpo7gnv_xd/tmp2t0nhaxy.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmp2t0nhaxy.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 2); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_q", 616s # (gchar *) "q", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodQ", 616s # NULL, 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 616s # NULL 616s # }, 616s # "handle-single-arg-method-q", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_q ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-q", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_q, 616s # G_TYPE_BOOLEAN, 616s # 1, 616s # G_TYPE_DBUS_METHOD_INVOCATION); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_q: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_q ( 616s # OrgProjectUsefulInterface *proxy, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodQ", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_q_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_q_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint16 *out_arg_q, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(q)", 616s # out_arg_q); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_q_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_q_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint16 *out_arg_q, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodQ", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(q)", 616s # out_arg_q); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_q: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * @arg_q: Parameter to return. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_q ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation, 616s # guint16 arg_q) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("(q)", 616s # arg_q)); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpo7gnv_xd/tmp47kt0rv5.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmp47kt0rv5.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 2); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_i", 616s # (gchar *) "i", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodI", 616s # NULL, 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 616s # NULL 616s # }, 616s # "handle-single-arg-method-i", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_i ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-i", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_i, 616s # G_TYPE_BOOLEAN, 616s # 1, 616s # G_TYPE_DBUS_METHOD_INVOCATION); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_i: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_i ( 616s # OrgProjectUsefulInterface *proxy, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodI", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_i_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_i_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint *out_arg_i, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(i)", 616s # out_arg_i); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_i_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_i_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # gint *out_arg_i, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodI", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(i)", 616s # out_arg_i); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_i: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * @arg_i: Parameter to return. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_i ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation, 616s # gint arg_i) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("(i)", 616s # arg_i)); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_proxy_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 616s # g_datalist_clear (&proxy->priv->qdata); 616s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 616s # guint prop_id G_GNUC_UNUSED, 616s # const GValue *value G_GNUC_UNUSED, 616s # GParamSpec *pspec G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 616s # const gchar *sender_name G_GNUC_UNUSED, 616s # const gchar *signal_name, 616s # GVariant *parameters) 616s # { 616s # _ExtendedGDBusSignalInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # gsize n; 616s # guint signal_id; 616s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 616s # if (info == NULL) 616s # return; 616s # num_params = g_variant_n_children (parameters); 616s # paramv = g_new0 (GValue, num_params + 1); 616s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[0], proxy); 616s # g_variant_iter_init (&iter, parameters); 616s # n = 1; 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_signal_emitv (paramv, signal_id, 0, NULL); 616s # for (n = 0; n < num_params + 1; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 616s # GVariant *changed_properties, 616s # const gchar *const *invalidated_properties) 616s # { 616s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 616s # guint n; 616s # const gchar *key; 616s # GVariantIter *iter; 616s # _ExtendedGDBusPropertyInfo *info; 616s # g_variant_get (changed_properties, "a{sv}", &iter); 616s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 616s # g_datalist_remove_data (&proxy->priv->qdata, key); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # g_variant_iter_free (iter); 616s # for (n = 0; invalidated_properties[n] != NULL; n++) 616s # { 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 616s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 616s # if (info != NULL) 616s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 616s # } 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 616s # #else 616s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 616s # #endif 616s # 616s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusProxyClass *proxy_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 616s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 616s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 616s # 616s # proxy_class = G_DBUS_PROXY_CLASS (klass); 616s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 616s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_sync: 616s # * @connection: A #GDBusConnection. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_sync ( 616s # GDBusConnection *connection, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 616s # */ 616s # void 616s # org_project_useful_interface_proxy_new_for_bus ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_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); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_finish: 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 616s # * @error: Return location for error or %NULL 616s # * 616s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_finish ( 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GObject *ret; 616s # GObject *source_object; 616s # source_object = g_async_result_get_source_object (res); 616s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 616s # g_object_unref (source_object); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_proxy_new_for_bus_sync: 616s # * @bus_type: A #GBusType. 616s # * @flags: Flags from the #GDBusProxyFlags enumeration. 616s # * @name: A bus name (well-known or unique). 616s # * @object_path: An object path. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL 616s # * 616s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 616s # * 616s # * The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_proxy_new_for_bus_sync ( 616s # GBusType bus_type, 616s # GDBusProxyFlags flags, 616s # const gchar *name, 616s # const gchar *object_path, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GInitable *ret; 616s # 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); 616s # if (ret != NULL) 616s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 616s # else 616s # return NULL; 616s # } 616s # 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeleton: 616s # * 616s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceSkeletonClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 616s # { 616s # GValue *properties; 616s # GList *changed_properties; 616s # GSource *changed_properties_idle_source; 616s # GMainContext *context; 616s # GMutex lock; 616s # }; 616s # 616s # static void 616s # _org_project_useful_interface_skeleton_handle_method_call ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name, 616s # const gchar *method_name, 616s # GVariant *parameters, 616s # GDBusMethodInvocation *invocation, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # _ExtendedGDBusMethodInfo *info; 616s # GVariantIter iter; 616s # GVariant *child; 616s # GValue *paramv; 616s # gsize num_params; 616s # guint num_extra; 616s # gsize n; 616s # guint signal_id; 616s # GValue return_value = G_VALUE_INIT; 616s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 616s # g_assert (info != NULL); 616s # num_params = g_variant_n_children (parameters); 616s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 616s # n = 0; 616s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_set_object (¶mv[n++], skeleton); 616s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 616s # g_value_set_object (¶mv[n++], invocation); 616s # if (info->pass_fdlist) 616s # { 616s # #ifdef G_OS_UNIX 616s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 616s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 616s # #else 616s # g_assert_not_reached (); 616s # #endif 616s # } 616s # g_variant_iter_init (&iter, parameters); 616s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 616s # { 616s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 616s # if (arg_info->use_gvariant) 616s # { 616s # g_value_init (¶mv[n], G_TYPE_VARIANT); 616s # g_value_set_variant (¶mv[n], child); 616s # n++; 616s # } 616s # else 616s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 616s # g_variant_unref (child); 616s # } 616s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 616s # g_value_init (&return_value, G_TYPE_BOOLEAN); 616s # g_signal_emitv (paramv, signal_id, 0, &return_value); 616s # if (!g_value_get_boolean (&return_value)) 616s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 616s # g_value_unset (&return_value); 616s # for (n = 0; n < num_params + num_extra; n++) 616s # g_value_unset (¶mv[n]); 616s # g_free (paramv); 616s # } 616s # 616s # static GVariant * 616s # _org_project_useful_interface_skeleton_handle_get_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # GVariant *ret; 616s # ret = NULL; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # g_value_init (&value, pspec->value_type); 616s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 616s # g_value_unset (&value); 616s # } 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _org_project_useful_interface_skeleton_handle_set_property ( 616s # GDBusConnection *connection G_GNUC_UNUSED, 616s # const gchar *sender G_GNUC_UNUSED, 616s # const gchar *object_path G_GNUC_UNUSED, 616s # const gchar *interface_name G_GNUC_UNUSED, 616s # const gchar *property_name, 616s # GVariant *variant, 616s # GError **error, 616s # gpointer user_data) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 616s # GValue value = G_VALUE_INIT; 616s # GParamSpec *pspec; 616s # _ExtendedGDBusPropertyInfo *info; 616s # gboolean ret; 616s # ret = FALSE; 616s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 616s # g_assert (info != NULL); 616s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 616s # if (pspec == NULL) 616s # { 616s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 616s # } 616s # else 616s # { 616s # if (info->use_gvariant) 616s # g_value_set_variant (&value, variant); 616s # else 616s # g_dbus_gvariant_to_gvalue (variant, &value); 616s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 616s # g_value_unset (&value); 616s # ret = TRUE; 616s # } 616s # return ret; 616s # } 616s # 616s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 616s # { 616s # _org_project_useful_interface_skeleton_handle_method_call, 616s # _org_project_useful_interface_skeleton_handle_get_property, 616s # _org_project_useful_interface_skeleton_handle_set_property, 616s # {NULL} 616s # }; 616s # 616s # static GDBusInterfaceInfo * 616s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return org_project_useful_interface_interface_info (); 616s # } 616s # 616s # static GDBusInterfaceVTable * 616s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 616s # { 616s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 616s # } 616s # 616s # static GVariant * 616s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 616s # 616s # GVariantBuilder builder; 616s # guint n; 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 616s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #else 616s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 616s # #endif 616s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 616s # goto out; 616s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 616s # { 616s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 616s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 616s # { 616s # GVariant *value; 616s # 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); 616s # if (value != NULL) 616s # { 616s # g_variant_take_ref (value); 616s # g_variant_builder_add (&builder, "{sv}", info->name, value); 616s # g_variant_unref (value); 616s # } 616s # } 616s # } 616s # out: 616s # return g_variant_builder_end (&builder); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 616s # 616s # #endif 616s # static void 616s # org_project_useful_interface_skeleton_finalize (GObject *object) 616s # { 616s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 616s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 616s # if (skeleton->priv->changed_properties_idle_source != NULL) 616s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 616s # g_main_context_unref (skeleton->priv->context); 616s # g_mutex_clear (&skeleton->priv->lock); 616s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 616s # { 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 616s # #else 616s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 616s # #endif 616s # 616s # g_mutex_init (&skeleton->priv->lock); 616s # skeleton->priv->context = g_main_context_ref_thread_default (); 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 616s # { 616s # GObjectClass *gobject_class; 616s # GDBusInterfaceSkeletonClass *skeleton_class; 616s # 616s # gobject_class = G_OBJECT_CLASS (klass); 616s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 616s # 616s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 616s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 616s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 616s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 616s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 616s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 616s # #endif 616s # } 616s # 616s # static void 616s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 616s # { 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_skeleton_new: 616s # * 616s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 616s # * 616s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 616s # */ 616s # OrgProjectUsefulInterface * 616s # org_project_useful_interface_skeleton_new (void) 616s # { 616s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 616s # } 616s # Error: 616s # 616s # /tmp/tmpo7gnv_xd/tmps2vk921r.xml: 616s # 616s # 616s # 616s # 616s # 616s # 616s # 616s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmps2vk921r.xml', '--output', '-', '--body'] 616s # Return code: 0 616s # Output: 616s # /* 616s # * This file is generated by gdbus-codegen, do not modify it. 616s # * 616s # * The license of this code is the same as for the D-Bus interface description 616s # * it was derived from. Note that it links to GLib, so must comply with the 616s # * LGPL linking clauses. 616s # */ 616s # 616s # #ifdef HAVE_CONFIG_H 616s # # include "config.h" 616s # #endif 616s # 616s # #include 616s # #ifdef G_OS_UNIX 616s # # include 616s # #endif 616s # 616s # #ifdef G_ENABLE_DEBUG 616s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 616s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 616s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 616s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 616s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 616s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 616s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 616s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 616s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 616s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 616s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 616s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 616s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 616s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 616s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 616s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 616s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 616s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 616s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 616s # #else /* !G_ENABLE_DEBUG */ 616s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 616s # * Do not access GValues directly in your code. Instead, use the 616s # * g_value_get_*() functions 616s # */ 616s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 616s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 616s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 616s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 616s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 616s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 616s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 616s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 616s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 616s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 616s # #endif /* !G_ENABLE_DEBUG */ 616s # 616s # typedef struct 616s # { 616s # GDBusArgInfo parent_struct; 616s # gboolean use_gvariant; 616s # } _ExtendedGDBusArgInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusMethodInfo parent_struct; 616s # const gchar *signal_name; 616s # gboolean pass_fdlist; 616s # } _ExtendedGDBusMethodInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusSignalInfo parent_struct; 616s # const gchar *signal_name; 616s # } _ExtendedGDBusSignalInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusPropertyInfo parent_struct; 616s # const gchar *hyphen_name; 616s # guint use_gvariant : 1; 616s # guint emits_changed_signal : 1; 616s # } _ExtendedGDBusPropertyInfo; 616s # 616s # typedef struct 616s # { 616s # GDBusInterfaceInfo parent_struct; 616s # const gchar *hyphen_name; 616s # } _ExtendedGDBusInterfaceInfo; 616s # 616s # typedef struct 616s # { 616s # const _ExtendedGDBusPropertyInfo *info; 616s # guint prop_id; 616s # GValue orig_value; /* the value before the change */ 616s # } ChangedProperty; 616s # 616s # static void 616s # _changed_property_free (ChangedProperty *data) 616s # { 616s # g_value_unset (&data->orig_value); 616s # g_free (data); 616s # } 616s # 616s # static gboolean 616s # _g_strv_equal0 (gchar **a, gchar **b) 616s # { 616s # gboolean ret = FALSE; 616s # guint n; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # if (g_strv_length (a) != g_strv_length (b)) 616s # goto out; 616s # for (n = 0; a[n] != NULL; n++) 616s # if (g_strcmp0 (a[n], b[n]) != 0) 616s # goto out; 616s # ret = TRUE; 616s # out: 616s # return ret; 616s # } 616s # 616s # static gboolean 616s # _g_variant_equal0 (GVariant *a, GVariant *b) 616s # { 616s # gboolean ret = FALSE; 616s # if (a == NULL && b == NULL) 616s # { 616s # ret = TRUE; 616s # goto out; 616s # } 616s # if (a == NULL || b == NULL) 616s # goto out; 616s # ret = g_variant_equal (a, b); 616s # out: 616s # return ret; 616s # } 616s # 616s # G_GNUC_UNUSED static gboolean 616s # _g_value_equal (const GValue *a, const GValue *b) 616s # { 616s # gboolean ret = FALSE; 616s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 616s # switch (G_VALUE_TYPE (a)) 616s # { 616s # case G_TYPE_BOOLEAN: 616s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 616s # break; 616s # case G_TYPE_UCHAR: 616s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 616s # break; 616s # case G_TYPE_INT: 616s # ret = (g_value_get_int (a) == g_value_get_int (b)); 616s # break; 616s # case G_TYPE_UINT: 616s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 616s # break; 616s # case G_TYPE_INT64: 616s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 616s # break; 616s # case G_TYPE_UINT64: 616s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 616s # break; 616s # case G_TYPE_DOUBLE: 616s # { 616s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 616s # gdouble da = g_value_get_double (a); 616s # gdouble db = g_value_get_double (b); 616s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 616s # } 616s # break; 616s # case G_TYPE_STRING: 616s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 616s # break; 616s # case G_TYPE_VARIANT: 616s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 616s # break; 616s # default: 616s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 616s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 616s # else 616s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 616s # break; 616s # } 616s # return ret; 616s # } 616s # 616s # static void 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint G_GNUC_UNUSED, 616s # void *marshal_data) 616s # { 616s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (void *data1, 616s # GDBusMethodInvocation *arg_method_invocation, 616s # void *data2); 616s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 616s # GCClosure *cc = (GCClosure*) closure; 616s # void *data1, *data2; 616s # gboolean v_return; 616s # 616s # g_return_if_fail (return_value != NULL); 616s # g_return_if_fail (n_param_values == 2); 616s # 616s # if (G_CCLOSURE_SWAP_DATA (closure)) 616s # { 616s # data1 = closure->data; 616s # data2 = g_value_peek_pointer (param_values + 0); 616s # } 616s # else 616s # { 616s # data1 = g_value_peek_pointer (param_values + 0); 616s # data2 = closure->data; 616s # } 616s # 616s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 616s # (marshal_data ? marshal_data : cc->callback); 616s # 616s # v_return = 616s # callback (data1, 616s # g_marshal_value_peek_object (param_values + 1), 616s # data2); 616s # 616s # g_value_set_boolean (return_value, v_return); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ 616s # * Code for interface org.project.UsefulInterface 616s # * ------------------------------------------------------------------------ 616s # */ 616s # 616s # /** 616s # * SECTION:OrgProjectUsefulInterface 616s # * @title: OrgProjectUsefulInterface 616s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 616s # * 616s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 616s # */ 616s # 616s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 616s # 616s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 616s # { 616s # { 616s # -1, 616s # (gchar *) "arg_u", 616s # (gchar *) "u", 616s # NULL 616s # }, 616s # FALSE 616s # }; 616s # 616s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 616s # { 616s # { 616s # -1, 616s # (gchar *) "SingleArgMethodU", 616s # NULL, 616s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 616s # NULL 616s # }, 616s # "handle-single-arg-method-u", 616s # FALSE 616s # }; 616s # 616s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 616s # { 616s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 616s # NULL 616s # }; 616s # 616s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 616s # { 616s # { 616s # -1, 616s # (gchar *) "org.project.UsefulInterface", 616s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 616s # NULL, 616s # NULL, 616s # NULL 616s # }, 616s # "org-project-useful-interface", 616s # }; 616s # 616s # 616s # /** 616s # * org_project_useful_interface_interface_info: 616s # * 616s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 616s # * 616s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 616s # */ 616s # GDBusInterfaceInfo * 616s # org_project_useful_interface_interface_info (void) 616s # { 616s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_override_properties: 616s # * @klass: The class structure for a #GObject derived class. 616s # * @property_id_begin: The property id to assign to the first overridden property. 616s # * 616s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 616s # * The properties are overridden in the order they are defined. 616s # * 616s # * Returns: The last property id. 616s # */ 616s # guint 616s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 616s # { 616s # return property_id_begin - 1; 616s # } 616s # 616s # 616s # inline static void 616s # org_project_useful_interface_method_marshal_single_arg_method_u ( 616s # GClosure *closure, 616s # GValue *return_value, 616s # unsigned int n_param_values, 616s # const GValue *param_values, 616s # void *invocation_hint, 616s # void *marshal_data) 616s # { 616s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 616s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 616s # } 616s # 616s # 616s # /** 616s # * OrgProjectUsefulInterface: 616s # * 616s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceIface: 616s # * @parent_iface: The parent interface. 616s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 616s # * 616s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 616s # */ 616s # 616s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 616s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 616s # 616s # static void 616s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 616s # { 616s # /* GObject signals for incoming D-Bus method calls: */ 616s # /** 616s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: A #GDBusMethodInvocation. 616s # * 616s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 616s # * 616s # * 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. 616s # * 616s # * 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. 616s # */ 616s # g_signal_new ("handle-single-arg-method-u", 616s # G_TYPE_FROM_INTERFACE (iface), 616s # G_SIGNAL_RUN_LAST, 616s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 616s # g_signal_accumulator_true_handled, 616s # NULL, 616s # org_project_useful_interface_method_marshal_single_arg_method_u, 616s # G_TYPE_BOOLEAN, 616s # 1, 616s # G_TYPE_DBUS_METHOD_INVOCATION); 616s # 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_u: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 616s # * @user_data: User data to pass to @callback. 616s # * 616s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 616s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 616s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 616s # */ 616s # void 616s # org_project_useful_interface_call_single_arg_method_u ( 616s # OrgProjectUsefulInterface *proxy, 616s # GCancellable *cancellable, 616s # GAsyncReadyCallback callback, 616s # gpointer user_data) 616s # { 616s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodU", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # callback, 616s # user_data); 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_u_finish: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_u_finish ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint *out_arg_u, 616s # GAsyncResult *res, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(u)", 616s # out_arg_u); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_call_single_arg_method_u_sync: 616s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 616s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 616s # * @cancellable: (nullable): A #GCancellable or %NULL. 616s # * @error: Return location for error or %NULL. 616s # * 616s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 616s # * 616s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 616s # * 616s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 616s # */ 616s # gboolean 616s # org_project_useful_interface_call_single_arg_method_u_sync ( 616s # OrgProjectUsefulInterface *proxy, 616s # guint *out_arg_u, 616s # GCancellable *cancellable, 616s # GError **error) 616s # { 616s # GVariant *_ret; 616s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 616s # "SingleArgMethodU", 616s # g_variant_new ("()"), 616s # G_DBUS_CALL_FLAGS_NONE, 616s # -1, 616s # cancellable, 616s # error); 616s # if (_ret == NULL) 616s # goto _out; 616s # g_variant_get (_ret, 616s # "(u)", 616s # out_arg_u); 616s # g_variant_unref (_ret); 616s # _out: 616s # return _ret != NULL; 616s # } 616s # 616s # /** 616s # * org_project_useful_interface_complete_single_arg_method_u: 616s # * @object: A #OrgProjectUsefulInterface. 616s # * @invocation: (transfer full): A #GDBusMethodInvocation. 616s # * @arg_u: Parameter to return. 616s # * 616s # * 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. 616s # * 616s # * This method will free @invocation, you cannot use it afterwards. 616s # */ 616s # void 616s # org_project_useful_interface_complete_single_arg_method_u ( 616s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 616s # GDBusMethodInvocation *invocation, 616s # guint arg_u) 616s # { 616s # g_dbus_method_invocation_return_value (invocation, 616s # g_variant_new ("(u)", 616s # arg_u)); 616s # } 616s # 616s # /* ------------------------------------------------------------------------ */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxy: 616s # * 616s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 616s # */ 616s # 616s # /** 616s # * OrgProjectUsefulInterfaceProxyClass: 616s # * @parent_class: The parent class. 616s # * 616s # * Class structure for #OrgProjectUsefulInterfaceProxy. 616s # */ 616s # 616s # struct _OrgProjectUsefulInterfaceProxyPrivate 616s # { 616s # GData *qdata; 616s # }; 616s # 616s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 616s # 616s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 616s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 616s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 616s # 616s # #else 616s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmp61hsdpxo.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmp61hsdpxo.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodX", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-x", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_x ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-x", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_x, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_x: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_x ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodX", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_x_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_x_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gint64 *out_arg_x, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(x)", 617s # out_arg_x); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_x_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_x_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gint64 *out_arg_x, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodX", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(x)", 617s # out_arg_x); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_x: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_x: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_x ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # gint64 arg_x) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(x)", 617s # arg_x)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpuzwtu4vw.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpuzwtu4vw.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodT", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-t", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_t ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-t", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_t, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_t: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_t ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodT", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_t_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_t_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # guint64 *out_arg_t, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(t)", 617s # out_arg_t); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_t_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_t_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # guint64 *out_arg_t, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodT", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(t)", 617s # out_arg_t); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_t: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_t: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_t ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # guint64 arg_t) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(t)", 617s # arg_t)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpfbtv9vvf.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpfbtv9vvf.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodD", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-d", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_d ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-d", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_d, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_d: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_d ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodD", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_d_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_d_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gdouble *out_arg_d, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(d)", 617s # out_arg_d); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_d_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_d_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gdouble *out_arg_d, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodD", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(d)", 617s # out_arg_d); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_d: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_d: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_d ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # gdouble arg_d) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(d)", 617s # arg_d)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpqprb64b8.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpqprb64b8.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodS", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-s", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_s ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-s", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_s, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_s: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_s ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodS", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_s_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_s_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_s, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(s)", 617s # out_arg_s); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_s_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_s_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_s, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodS", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(s)", 617s # out_arg_s); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_s: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_s: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_s ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *arg_s) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(s)", 617s # arg_s)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpah7hwbz5.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpah7hwbz5.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodO", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-o", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_o ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-o", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_o, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_o: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_o ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodO", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_o_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_o_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_o, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(o)", 617s # out_arg_o); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_o_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_o_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_o, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodO", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(o)", 617s # out_arg_o); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_o: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_o: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_o ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *arg_o) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(o)", 617s # arg_o)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmp3no94jgg.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmp3no94jgg.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodG", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-g", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_g ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-g", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_g, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_g: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_g ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodG", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_g_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_g_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_g, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(g)", 617s # out_arg_g); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_g_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_g_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_g, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodG", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(g)", 617s # out_arg_g); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_g: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_g: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_g ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *arg_g) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(g)", 617s # arg_g)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpcv_0f28a.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpcv_0f28a.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodH", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-h", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_h ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-h", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_h, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_h: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_h ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodH", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_h_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_h_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # GVariant **out_arg_h, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(@h)", 617s # out_arg_h); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_h_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_h_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # GVariant **out_arg_h, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodH", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(@h)", 617s # out_arg_h); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_h: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_h: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_h ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # GVariant *arg_h) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(@h)", 617s # arg_h)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmplsi_djh2.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmplsi_djh2.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodAy", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-ay", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-ay", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_ay, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_ay: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_ay ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAy", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_ay_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_ay_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_ay, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^ay)", 617s # out_arg_ay); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_ay_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_ay_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar **out_arg_ay, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAy", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^ay)", 617s # out_arg_ay); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_ay: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_ay: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_ay ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *arg_ay) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(^ay)", 617s # arg_ay)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmp0eolxwzb.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmp0eolxwzb.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodAs", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-as", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_as ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-as", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_as, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_as: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_as ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAs", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_as_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_as_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar ***out_arg_as, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^as)", 617s # out_arg_as); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_as_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_as_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar ***out_arg_as, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAs", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^as)", 617s # out_arg_as); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_as: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_as: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_as ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *const *arg_as) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(^as)", 617s # arg_as)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmplyumu9f5.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmplyumu9f5.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodAo", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-ao", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-ao", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_ao, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_ao: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_ao ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAo", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_ao_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_ao_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar ***out_arg_ao, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^ao)", 617s # out_arg_ao); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_ao_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_ao_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar ***out_arg_ao, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAo", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^ao)", 617s # out_arg_ao); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_ao: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_ao: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_ao ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *const *arg_ao) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(^ao)", 617s # arg_ao)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpyfoust41.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpyfoust41.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodAay", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-aay", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-aay", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_aay, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_aay: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_aay ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAay", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_aay_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_aay_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar ***out_arg_aay, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^aay)", 617s # out_arg_aay); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_aay_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_aay_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # gchar ***out_arg_aay, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAay", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(^aay)", 617s # out_arg_aay); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_aay: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_aay: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_aay ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # const gchar *const *arg_aay) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(^aay)", 617s # arg_aay)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmpo7gnv_xd/tmpsqt5c0bn.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo7gnv_xd/tmpsqt5c0bn.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgMethodAsv", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-single-arg-method-asv", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-single-arg-method-asv", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_useful_interface_method_marshal_single_arg_method_asv, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_asv: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_useful_interface_call_single_arg_method_asv ( 617s # OrgProjectUsefulInterface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAsv", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_asv_finish: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_asv_finish ( 617s # OrgProjectUsefulInterface *proxy, 617s # GVariant **out_arg_asv, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(@a{sv})", 617s # out_arg_asv); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_call_single_arg_method_asv_sync: 617s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 617s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_useful_interface_call_single_arg_method_asv_sync ( 617s # OrgProjectUsefulInterface *proxy, 617s # GVariant **out_arg_asv, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SingleArgMethodAsv", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(@a{sv})", 617s # out_arg_asv); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_complete_single_arg_method_asv: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @arg_asv: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_useful_interface_complete_single_arg_method_asv ( 617s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # GVariant *arg_asv) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(@a{sv})", 617s # arg_asv)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpf8p6zvp6 617s # /tmp/tmpf8p6zvp6/tmpzi4qhrvr.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpf8p6zvp6/tmpzi4qhrvr.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 20); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # g_marshal_value_peek_boolean (param_values + 2), 617s # g_marshal_value_peek_uchar (param_values + 3), 617s # g_marshal_value_peek_int (param_values + 4), 617s # g_marshal_value_peek_uint (param_values + 5), 617s # g_marshal_value_peek_int (param_values + 6), 617s # g_marshal_value_peek_uint (param_values + 7), 617s # g_marshal_value_peek_int64 (param_values + 8), 617s # g_marshal_value_peek_uint64 (param_values + 9), 617s # g_marshal_value_peek_double (param_values + 10), 617s # g_marshal_value_peek_string (param_values + 11), 617s # g_marshal_value_peek_string (param_values + 12), 617s # g_marshal_value_peek_string (param_values + 13), 617s # g_marshal_value_peek_variant (param_values + 14), 617s # g_marshal_value_peek_string (param_values + 15), 617s # g_marshal_value_peek_boxed (param_values + 16), 617s # g_marshal_value_peek_boxed (param_values + 17), 617s # g_marshal_value_peek_boxed (param_values + 18), 617s # g_marshal_value_peek_variant (param_values + 19), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.CallableIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectCallableIface 617s # * @title: OrgProjectCallableIface 617s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.CallableIface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_i", 617s # (gchar *) "i", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_u", 617s # (gchar *) "u", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 617s # { 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 617s # { 617s # { 617s # -1, 617s # (gchar *) "MethodWithManyArgs", 617s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "handle-method-with-many-args", 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_i", 617s # (gchar *) "i", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_u", 617s # (gchar *) "u", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 617s # { 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SameMethodWithManyArgs", 617s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "handle-same-method-with-many-args", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 617s # { 617s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 617s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.CallableIface", 617s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-callable-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_callable_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_callable_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_callable_iface_method_marshal_method_with_many_args ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _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, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _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, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectCallableIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 617s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.CallableIface. 617s # */ 617s # 617s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectCallableIface::handle-method-with-many-args: 617s # * @object: A #OrgProjectCallableIface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * @arg_an_b: Argument passed by remote caller. 617s # * @arg_an_y: Argument passed by remote caller. 617s # * @arg_an_n: Argument passed by remote caller. 617s # * @arg_an_q: Argument passed by remote caller. 617s # * @arg_an_i: Argument passed by remote caller. 617s # * @arg_an_u: Argument passed by remote caller. 617s # * @arg_an_x: Argument passed by remote caller. 617s # * @arg_an_t: Argument passed by remote caller. 617s # * @arg_an_d: Argument passed by remote caller. 617s # * @arg_an_s: Argument passed by remote caller. 617s # * @arg_an_o: Argument passed by remote caller. 617s # * @arg_an_g: Argument passed by remote caller. 617s # * @arg_an_h: Argument passed by remote caller. 617s # * @arg_an_ay: Argument passed by remote caller. 617s # * @arg_an_as: Argument passed by remote caller. 617s # * @arg_an_ao: Argument passed by remote caller. 617s # * @arg_an_aay: Argument passed by remote caller. 617s # * @arg_an_asv: Argument passed by remote caller. 617s # * 617s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-method-with-many-args", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_callable_iface_method_marshal_method_with_many_args, 617s # G_TYPE_BOOLEAN, 617s # 19, 617s # 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); 617s # 617s # /** 617s # * OrgProjectCallableIface::handle-same-method-with-many-args: 617s # * @object: A #OrgProjectCallableIface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * @arg_an_b: Argument passed by remote caller. 617s # * @arg_an_y: Argument passed by remote caller. 617s # * @arg_an_n: Argument passed by remote caller. 617s # * @arg_an_q: Argument passed by remote caller. 617s # * @arg_an_i: Argument passed by remote caller. 617s # * @arg_an_u: Argument passed by remote caller. 617s # * @arg_an_x: Argument passed by remote caller. 617s # * @arg_an_t: Argument passed by remote caller. 617s # * @arg_an_d: Argument passed by remote caller. 617s # * @arg_an_s: Argument passed by remote caller. 617s # * @arg_an_o: Argument passed by remote caller. 617s # * @arg_an_g: Argument passed by remote caller. 617s # * @arg_an_h: Argument passed by remote caller. 617s # * @arg_an_ay: Argument passed by remote caller. 617s # * @arg_an_as: Argument passed by remote caller. 617s # * @arg_an_ao: Argument passed by remote caller. 617s # * @arg_an_aay: Argument passed by remote caller. 617s # * @arg_an_asv: Argument passed by remote caller. 617s # * 617s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-same-method-with-many-args", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_callable_iface_method_marshal_same_method_with_many_args, 617s # G_TYPE_BOOLEAN, 617s # 19, 617s # 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); 617s # 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_method_with_many_args: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @arg_an_b: Argument to pass with the method invocation. 617s # * @arg_an_y: Argument to pass with the method invocation. 617s # * @arg_an_n: Argument to pass with the method invocation. 617s # * @arg_an_q: Argument to pass with the method invocation. 617s # * @arg_an_i: Argument to pass with the method invocation. 617s # * @arg_an_u: Argument to pass with the method invocation. 617s # * @arg_an_x: Argument to pass with the method invocation. 617s # * @arg_an_t: Argument to pass with the method invocation. 617s # * @arg_an_d: Argument to pass with the method invocation. 617s # * @arg_an_s: Argument to pass with the method invocation. 617s # * @arg_an_o: Argument to pass with the method invocation. 617s # * @arg_an_g: Argument to pass with the method invocation. 617s # * @arg_an_h: Argument to pass with the method invocation. 617s # * @arg_an_ay: Argument to pass with the method invocation. 617s # * @arg_an_as: Argument to pass with the method invocation. 617s # * @arg_an_ao: Argument to pass with the method invocation. 617s # * @arg_an_aay: Argument to pass with the method invocation. 617s # * @arg_an_asv: Argument to pass with the method invocation. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_callable_iface_call_method_with_many_args ( 617s # OrgProjectCallableIface *proxy, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "MethodWithManyArgs", 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_method_with_many_args_finish: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_callable_iface_call_method_with_many_args_finish ( 617s # OrgProjectCallableIface *proxy, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "()"); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_method_with_many_args_sync: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @arg_an_b: Argument to pass with the method invocation. 617s # * @arg_an_y: Argument to pass with the method invocation. 617s # * @arg_an_n: Argument to pass with the method invocation. 617s # * @arg_an_q: Argument to pass with the method invocation. 617s # * @arg_an_i: Argument to pass with the method invocation. 617s # * @arg_an_u: Argument to pass with the method invocation. 617s # * @arg_an_x: Argument to pass with the method invocation. 617s # * @arg_an_t: Argument to pass with the method invocation. 617s # * @arg_an_d: Argument to pass with the method invocation. 617s # * @arg_an_s: Argument to pass with the method invocation. 617s # * @arg_an_o: Argument to pass with the method invocation. 617s # * @arg_an_g: Argument to pass with the method invocation. 617s # * @arg_an_h: Argument to pass with the method invocation. 617s # * @arg_an_ay: Argument to pass with the method invocation. 617s # * @arg_an_as: Argument to pass with the method invocation. 617s # * @arg_an_ao: Argument to pass with the method invocation. 617s # * @arg_an_aay: Argument to pass with the method invocation. 617s # * @arg_an_asv: Argument to pass with the method invocation. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_callable_iface_call_method_with_many_args_sync ( 617s # OrgProjectCallableIface *proxy, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "MethodWithManyArgs", 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "()"); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_same_method_with_many_args: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @arg_an_b: Argument to pass with the method invocation. 617s # * @arg_an_y: Argument to pass with the method invocation. 617s # * @arg_an_n: Argument to pass with the method invocation. 617s # * @arg_an_q: Argument to pass with the method invocation. 617s # * @arg_an_i: Argument to pass with the method invocation. 617s # * @arg_an_u: Argument to pass with the method invocation. 617s # * @arg_an_x: Argument to pass with the method invocation. 617s # * @arg_an_t: Argument to pass with the method invocation. 617s # * @arg_an_d: Argument to pass with the method invocation. 617s # * @arg_an_s: Argument to pass with the method invocation. 617s # * @arg_an_o: Argument to pass with the method invocation. 617s # * @arg_an_g: Argument to pass with the method invocation. 617s # * @arg_an_h: Argument to pass with the method invocation. 617s # * @arg_an_ay: Argument to pass with the method invocation. 617s # * @arg_an_as: Argument to pass with the method invocation. 617s # * @arg_an_ao: Argument to pass with the method invocation. 617s # * @arg_an_aay: Argument to pass with the method invocation. 617s # * @arg_an_asv: Argument to pass with the method invocation. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_callable_iface_call_same_method_with_many_args ( 617s # OrgProjectCallableIface *proxy, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "SameMethodWithManyArgs", 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_same_method_with_many_args_finish: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_callable_iface_call_same_method_with_many_args_finish ( 617s # OrgProjectCallableIface *proxy, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "()"); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_same_method_with_many_args_sync: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @arg_an_b: Argument to pass with the method invocation. 617s # * @arg_an_y: Argument to pass with the method invocation. 617s # * @arg_an_n: Argument to pass with the method invocation. 617s # * @arg_an_q: Argument to pass with the method invocation. 617s # * @arg_an_i: Argument to pass with the method invocation. 617s # * @arg_an_u: Argument to pass with the method invocation. 617s # * @arg_an_x: Argument to pass with the method invocation. 617s # * @arg_an_t: Argument to pass with the method invocation. 617s # * @arg_an_d: Argument to pass with the method invocation. 617s # * @arg_an_s: Argument to pass with the method invocation. 617s # * @arg_an_o: Argument to pass with the method invocation. 617s # * @arg_an_g: Argument to pass with the method invocation. 617s # * @arg_an_h: Argument to pass with the method invocation. 617s # * @arg_an_ay: Argument to pass with the method invocation. 617s # * @arg_an_as: Argument to pass with the method invocation. 617s # * @arg_an_ao: Argument to pass with the method invocation. 617s # * @arg_an_aay: Argument to pass with the method invocation. 617s # * @arg_an_asv: Argument to pass with the method invocation. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_callable_iface_call_same_method_with_many_args_sync ( 617s # OrgProjectCallableIface *proxy, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "SameMethodWithManyArgs", 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "()"); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_complete_method_with_many_args: 617s # * @object: A #OrgProjectCallableIface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_callable_iface_complete_method_with_many_args ( 617s # OrgProjectCallableIface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("()")); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_complete_same_method_with_many_args: 617s # * @object: A #OrgProjectCallableIface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_callable_iface_complete_same_method_with_many_args ( 617s # OrgProjectCallableIface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("()")); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceProxy: 617s # * 617s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectCallableIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectCallableIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_callable_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_callable_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_callable_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceSkeleton: 617s # * 617s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectCallableIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectCallableIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_callable_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_callable_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_callable_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 617s # { 617s # _org_project_callable_iface_skeleton_handle_method_call, 617s # _org_project_callable_iface_skeleton_handle_get_property, 617s # _org_project_callable_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_callable_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_callable_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.OtherCallableIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectOtherCallableIface 617s # * @title: OrgProjectOtherCallableIface 617s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_i", 617s # (gchar *) "i", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_u", 617s # (gchar *) "u", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 617s # { 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 617s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 617s # { 617s # { 617s # -1, 617s # (gchar *) "MethodWithManyArgs", 617s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "handle-method-with-many-args", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 617s # { 617s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.OtherCallableIface", 617s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-other-callable-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_other_callable_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_other_callable_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _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, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectOtherCallableIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherCallableIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 617s # */ 617s # 617s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 617s # * @object: A #OrgProjectOtherCallableIface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * @arg_an_b: Argument passed by remote caller. 617s # * @arg_an_y: Argument passed by remote caller. 617s # * @arg_an_n: Argument passed by remote caller. 617s # * @arg_an_q: Argument passed by remote caller. 617s # * @arg_an_i: Argument passed by remote caller. 617s # * @arg_an_u: Argument passed by remote caller. 617s # * @arg_an_x: Argument passed by remote caller. 617s # * @arg_an_t: Argument passed by remote caller. 617s # * @arg_an_d: Argument passed by remote caller. 617s # * @arg_an_s: Argument passed by remote caller. 617s # * @arg_an_o: Argument passed by remote caller. 617s # * @arg_an_g: Argument passed by remote caller. 617s # * @arg_an_h: Argument passed by remote caller. 617s # * @arg_an_ay: Argument passed by remote caller. 617s # * @arg_an_as: Argument passed by remote caller. 617s # * @arg_an_ao: Argument passed by remote caller. 617s # * @arg_an_aay: Argument passed by remote caller. 617s # * @arg_an_asv: Argument passed by remote caller. 617s # * 617s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-method-with-many-args", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_other_callable_iface_method_marshal_method_with_many_args, 617s # G_TYPE_BOOLEAN, 617s # 19, 617s # 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); 617s # 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_call_method_with_many_args: 617s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 617s # * @arg_an_b: Argument to pass with the method invocation. 617s # * @arg_an_y: Argument to pass with the method invocation. 617s # * @arg_an_n: Argument to pass with the method invocation. 617s # * @arg_an_q: Argument to pass with the method invocation. 617s # * @arg_an_i: Argument to pass with the method invocation. 617s # * @arg_an_u: Argument to pass with the method invocation. 617s # * @arg_an_x: Argument to pass with the method invocation. 617s # * @arg_an_t: Argument to pass with the method invocation. 617s # * @arg_an_d: Argument to pass with the method invocation. 617s # * @arg_an_s: Argument to pass with the method invocation. 617s # * @arg_an_o: Argument to pass with the method invocation. 617s # * @arg_an_g: Argument to pass with the method invocation. 617s # * @arg_an_h: Argument to pass with the method invocation. 617s # * @arg_an_ay: Argument to pass with the method invocation. 617s # * @arg_an_as: Argument to pass with the method invocation. 617s # * @arg_an_ao: Argument to pass with the method invocation. 617s # * @arg_an_aay: Argument to pass with the method invocation. 617s # * @arg_an_asv: Argument to pass with the method invocation. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_other_callable_iface_call_method_with_many_args ( 617s # OrgProjectOtherCallableIface *proxy, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "MethodWithManyArgs", 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_call_method_with_many_args_finish: 617s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_other_callable_iface_call_method_with_many_args_finish ( 617s # OrgProjectOtherCallableIface *proxy, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "()"); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_call_method_with_many_args_sync: 617s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 617s # * @arg_an_b: Argument to pass with the method invocation. 617s # * @arg_an_y: Argument to pass with the method invocation. 617s # * @arg_an_n: Argument to pass with the method invocation. 617s # * @arg_an_q: Argument to pass with the method invocation. 617s # * @arg_an_i: Argument to pass with the method invocation. 617s # * @arg_an_u: Argument to pass with the method invocation. 617s # * @arg_an_x: Argument to pass with the method invocation. 617s # * @arg_an_t: Argument to pass with the method invocation. 617s # * @arg_an_d: Argument to pass with the method invocation. 617s # * @arg_an_s: Argument to pass with the method invocation. 617s # * @arg_an_o: Argument to pass with the method invocation. 617s # * @arg_an_g: Argument to pass with the method invocation. 617s # * @arg_an_h: Argument to pass with the method invocation. 617s # * @arg_an_ay: Argument to pass with the method invocation. 617s # * @arg_an_as: Argument to pass with the method invocation. 617s # * @arg_an_ao: Argument to pass with the method invocation. 617s # * @arg_an_aay: Argument to pass with the method invocation. 617s # * @arg_an_asv: Argument to pass with the method invocation. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_other_callable_iface_call_method_with_many_args_sync ( 617s # OrgProjectOtherCallableIface *proxy, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "MethodWithManyArgs", 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "()"); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_complete_method_with_many_args: 617s # * @object: A #OrgProjectOtherCallableIface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_other_callable_iface_complete_method_with_many_args ( 617s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("()")); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectOtherCallableIfaceProxy: 617s # * 617s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherCallableIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectOtherCallableIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_other_callable_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_other_callable_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherCallableIface * 617s # org_project_other_callable_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherCallableIface * 617s # org_project_other_callable_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_other_callable_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_other_callable_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherCallableIface * 617s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherCallableIface * 617s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectOtherCallableIfaceSkeleton: 617s # * 617s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherCallableIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_other_callable_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_other_callable_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_other_callable_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 617s # { 617s # _org_project_other_callable_iface_skeleton_handle_method_call, 617s # _org_project_other_callable_iface_skeleton_handle_get_property, 617s # _org_project_other_callable_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_other_callable_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_other_callable_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectOtherCallableIface * 617s # org_project_other_callable_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpfcj4yugg 617s # /tmp/tmpfcj4yugg/tmp1lcq9lgj.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfcj4yugg/tmp1lcq9lgj.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.CallableIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectCallableIface 617s # * @title: OrgProjectCallableIface 617s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for org.project.CallableIface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_i", 617s # (gchar *) "i", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_u", 617s # (gchar *) "u", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 617s # { 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 617s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 617s # { 617s # { 617s # -1, 617s # (gchar *) "MethodWithManyArgs", 617s # NULL, 617s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-method-with-many-args", 617s # FALSE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 617s # { 617s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.CallableIface", 617s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-callable-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_callable_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_callable_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_callable_iface_method_marshal_method_with_many_args ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectCallableIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.CallableIface. 617s # */ 617s # 617s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * OrgProjectCallableIface::handle-method-with-many-args: 617s # * @object: A #OrgProjectCallableIface. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * 617s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-method-with-many-args", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # org_project_callable_iface_method_marshal_method_with_many_args, 617s # G_TYPE_BOOLEAN, 617s # 1, 617s # G_TYPE_DBUS_METHOD_INVOCATION); 617s # 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_method_with_many_args: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # org_project_callable_iface_call_method_with_many_args ( 617s # OrgProjectCallableIface *proxy, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 617s # "MethodWithManyArgs", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_method_with_many_args_finish: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_callable_iface_call_method_with_many_args_finish ( 617s # OrgProjectCallableIface *proxy, 617s # gboolean *out_an_b, 617s # guchar *out_an_y, 617s # gint16 *out_an_n, 617s # guint16 *out_an_q, 617s # gint *out_an_i, 617s # guint *out_an_u, 617s # gint64 *out_an_x, 617s # guint64 *out_an_t, 617s # gdouble *out_an_d, 617s # gchar **out_an_s, 617s # gchar **out_an_o, 617s # gchar **out_an_g, 617s # GVariant **out_an_h, 617s # gchar **out_an_ay, 617s # gchar ***out_an_as, 617s # gchar ***out_an_ao, 617s # gchar ***out_an_aay, 617s # GVariant **out_an_asv, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # out_an_b, 617s # out_an_y, 617s # out_an_n, 617s # out_an_q, 617s # out_an_i, 617s # out_an_u, 617s # out_an_x, 617s # out_an_t, 617s # out_an_d, 617s # out_an_s, 617s # out_an_o, 617s # out_an_g, 617s # out_an_h, 617s # out_an_ay, 617s # out_an_as, 617s # out_an_ao, 617s # out_an_aay, 617s # out_an_asv); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_call_method_with_many_args_sync: 617s # * @proxy: A #OrgProjectCallableIfaceProxy. 617s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 617s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # org_project_callable_iface_call_method_with_many_args_sync ( 617s # OrgProjectCallableIface *proxy, 617s # gboolean *out_an_b, 617s # guchar *out_an_y, 617s # gint16 *out_an_n, 617s # guint16 *out_an_q, 617s # gint *out_an_i, 617s # guint *out_an_u, 617s # gint64 *out_an_x, 617s # guint64 *out_an_t, 617s # gdouble *out_an_d, 617s # gchar **out_an_s, 617s # gchar **out_an_o, 617s # gchar **out_an_g, 617s # GVariant **out_an_h, 617s # gchar **out_an_ay, 617s # gchar ***out_an_as, 617s # gchar ***out_an_ao, 617s # gchar ***out_an_aay, 617s # GVariant **out_an_asv, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 617s # "MethodWithManyArgs", 617s # g_variant_new ("()"), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # out_an_b, 617s # out_an_y, 617s # out_an_n, 617s # out_an_q, 617s # out_an_i, 617s # out_an_u, 617s # out_an_x, 617s # out_an_t, 617s # out_an_d, 617s # out_an_s, 617s # out_an_o, 617s # out_an_g, 617s # out_an_h, 617s # out_an_ay, 617s # out_an_as, 617s # out_an_ao, 617s # out_an_aay, 617s # out_an_asv); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_complete_method_with_many_args: 617s # * @object: A #OrgProjectCallableIface. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @an_b: Parameter to return. 617s # * @an_y: Parameter to return. 617s # * @an_n: Parameter to return. 617s # * @an_q: Parameter to return. 617s # * @an_i: Parameter to return. 617s # * @an_u: Parameter to return. 617s # * @an_x: Parameter to return. 617s # * @an_t: Parameter to return. 617s # * @an_d: Parameter to return. 617s # * @an_s: Parameter to return. 617s # * @an_o: Parameter to return. 617s # * @an_g: Parameter to return. 617s # * @an_h: Parameter to return. 617s # * @an_ay: Parameter to return. 617s # * @an_as: Parameter to return. 617s # * @an_ao: Parameter to return. 617s # * @an_aay: Parameter to return. 617s # * @an_asv: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # org_project_callable_iface_complete_method_with_many_args ( 617s # OrgProjectCallableIface *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # gboolean an_b, 617s # guchar an_y, 617s # gint16 an_n, 617s # guint16 an_q, 617s # gint an_i, 617s # guint an_u, 617s # gint64 an_x, 617s # guint64 an_t, 617s # gdouble an_d, 617s # const gchar *an_s, 617s # const gchar *an_o, 617s # const gchar *an_g, 617s # GVariant *an_h, 617s # const gchar *an_ay, 617s # const gchar *const *an_as, 617s # const gchar *const *an_ao, 617s # const gchar *const *an_aay, 617s # GVariant *an_asv) 617s # { 617s # g_dbus_method_invocation_return_value (invocation, 617s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # an_b, 617s # an_y, 617s # an_n, 617s # an_q, 617s # an_i, 617s # an_u, 617s # an_x, 617s # an_t, 617s # an_d, 617s # an_s, 617s # an_o, 617s # an_g, 617s # an_h, 617s # an_ay, 617s # an_as, 617s # an_ao, 617s # an_aay, 617s # an_asv)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceProxy: 617s # * 617s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectCallableIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectCallableIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_callable_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_callable_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_callable_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_CALLABLE_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceSkeleton: 617s # * 617s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectCallableIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectCallableIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectCallableIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_callable_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_callable_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_callable_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 617s # { 617s # _org_project_callable_iface_skeleton_handle_method_call, 617s # _org_project_callable_iface_skeleton_handle_get_property, 617s # _org_project_callable_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_callable_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_callable_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_callable_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectCallableIface * 617s # org_project_callable_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpzb9qv9hb 617s # /tmp/tmpzb9qv9hb/tmpynq4wyzk.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzb9qv9hb/tmpynq4wyzk.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 617s # (void *data1, 617s # GDBusMethodInvocation *arg_method_invocation, 617s # GUnixFDList *arg_fd_list, 617s # const gchar *arg_greeting, 617s # void *data2); 617s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # gboolean v_return; 617s # 617s # g_return_if_fail (return_value != NULL); 617s # g_return_if_fail (n_param_values == 4); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # v_return = 617s # callback (data1, 617s # g_marshal_value_peek_object (param_values + 1), 617s # g_marshal_value_peek_object (param_values + 2), 617s # g_marshal_value_peek_string (param_values + 3), 617s # data2); 617s # 617s # g_value_set_boolean (return_value, v_return); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface test.FDPassing 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:TestFDPassing 617s # * @title: TestFDPassing 617s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 617s # * 617s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 617s # */ 617s # 617s # /* ---- Introspection data for test.FDPassing ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 617s # { 617s # { 617s # -1, 617s # (gchar *) "greeting", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 617s # { 617s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 617s # { 617s # { 617s # -1, 617s # (gchar *) "response", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 617s # { 617s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 617s # { 617s # { 617s # -1, 617s # (gchar *) "HelloFD", 617s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 617s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 617s # NULL 617s # }, 617s # "handle-hello-fd", 617s # TRUE 617s # }; 617s # 617s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 617s # { 617s # &_test_fdpassing_method_info_hello_fd.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "test.FDPassing", 617s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 617s # NULL, 617s # NULL, 617s # NULL 617s # }, 617s # "test-fdpassing", 617s # }; 617s # 617s # 617s # /** 617s # * test_fdpassing_interface_info: 617s # * 617s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # test_fdpassing_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * test_fdpassing_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # test_fdpassing_method_marshal_hello_fd ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * TestFDPassing: 617s # * 617s # * Abstract interface type for the D-Bus interface test.FDPassing. 617s # */ 617s # 617s # /** 617s # * TestFDPassingIface: 617s # * @parent_iface: The parent interface. 617s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 617s # * 617s # * Virtual table for the D-Bus interface test.FDPassing. 617s # */ 617s # 617s # typedef TestFDPassingIface TestFDPassingInterface; 617s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 617s # 617s # static void 617s # test_fdpassing_default_init (TestFDPassingIface *iface) 617s # { 617s # /* GObject signals for incoming D-Bus method calls: */ 617s # /** 617s # * TestFDPassing::handle-hello-fd: 617s # * @object: A #TestFDPassing. 617s # * @invocation: A #GDBusMethodInvocation. 617s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 617s # * @arg_greeting: Argument passed by remote caller. 617s # * 617s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 617s # * 617s # * 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. 617s # * 617s # * 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. 617s # */ 617s # g_signal_new ("handle-hello-fd", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 617s # g_signal_accumulator_true_handled, 617s # NULL, 617s # test_fdpassing_method_marshal_hello_fd, 617s # G_TYPE_BOOLEAN, 617s # 3, 617s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 617s # 617s # } 617s # 617s # /** 617s # * test_fdpassing_call_hello_fd: 617s # * @proxy: A #TestFDPassingProxy. 617s # * @arg_greeting: Argument to pass with the method invocation. 617s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 617s # * 617s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 617s # */ 617s # void 617s # test_fdpassing_call_hello_fd ( 617s # TestFDPassing *proxy, 617s # const gchar *arg_greeting, 617s # GUnixFDList *fd_list, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 617s # "HelloFD", 617s # g_variant_new ("(s)", 617s # arg_greeting), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # fd_list, 617s # cancellable, 617s # callback, 617s # user_data); 617s # } 617s # 617s # /** 617s # * test_fdpassing_call_hello_fd_finish: 617s # * @proxy: A #TestFDPassingProxy. 617s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # test_fdpassing_call_hello_fd_finish ( 617s # TestFDPassing *proxy, 617s # gchar **out_response, 617s # GUnixFDList **out_fd_list, 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(s)", 617s # out_response); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * test_fdpassing_call_hello_fd_sync: 617s # * @proxy: A #TestFDPassingProxy. 617s # * @arg_greeting: Argument to pass with the method invocation. 617s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 617s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 617s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL. 617s # * 617s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 617s # * 617s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 617s # * 617s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 617s # */ 617s # gboolean 617s # test_fdpassing_call_hello_fd_sync ( 617s # TestFDPassing *proxy, 617s # const gchar *arg_greeting, 617s # GUnixFDList *fd_list, 617s # gchar **out_response, 617s # GUnixFDList **out_fd_list, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GVariant *_ret; 617s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 617s # "HelloFD", 617s # g_variant_new ("(s)", 617s # arg_greeting), 617s # G_DBUS_CALL_FLAGS_NONE, 617s # -1, 617s # fd_list, 617s # out_fd_list, 617s # cancellable, 617s # error); 617s # if (_ret == NULL) 617s # goto _out; 617s # g_variant_get (_ret, 617s # "(s)", 617s # out_response); 617s # g_variant_unref (_ret); 617s # _out: 617s # return _ret != NULL; 617s # } 617s # 617s # /** 617s # * test_fdpassing_complete_hello_fd: 617s # * @object: A #TestFDPassing. 617s # * @invocation: (transfer full): A #GDBusMethodInvocation. 617s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 617s # * @response: Parameter to return. 617s # * 617s # * 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. 617s # * 617s # * This method will free @invocation, you cannot use it afterwards. 617s # */ 617s # void 617s # test_fdpassing_complete_hello_fd ( 617s # TestFDPassing *object G_GNUC_UNUSED, 617s # GDBusMethodInvocation *invocation, 617s # GUnixFDList *fd_list, 617s # const gchar *response) 617s # { 617s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 617s # g_variant_new ("(s)", 617s # response), 617s # fd_list); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * TestFDPassingProxy: 617s # * 617s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * TestFDPassingProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #TestFDPassingProxy. 617s # */ 617s # 617s # struct _TestFDPassingProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (TestFDPassingProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # test_fdpassing_proxy_finalize (GObject *object) 617s # { 617s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = test_fdpassing_proxy_finalize; 617s # gobject_class->get_property = test_fdpassing_proxy_get_property; 617s # gobject_class->set_property = test_fdpassing_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 617s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * test_fdpassing_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # test_fdpassing_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * test_fdpassing_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with test_fdpassing_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # TestFDPassing * 617s # test_fdpassing_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return TEST_FDPASSING (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * test_fdpassing_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # TestFDPassing * 617s # test_fdpassing_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return TEST_FDPASSING (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * test_fdpassing_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # test_fdpassing_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * test_fdpassing_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # TestFDPassing * 617s # test_fdpassing_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return TEST_FDPASSING (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * test_fdpassing_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # TestFDPassing * 617s # test_fdpassing_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return TEST_FDPASSING (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * TestFDPassingSkeleton: 617s # * 617s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * TestFDPassingSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #TestFDPassingSkeleton. 617s # */ 617s # 617s # struct _TestFDPassingSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _test_fdpassing_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _test_fdpassing_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _test_fdpassing_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 617s # { 617s # _test_fdpassing_skeleton_handle_method_call, 617s # _test_fdpassing_skeleton_handle_get_property, 617s # _test_fdpassing_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return test_fdpassing_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (TestFDPassingSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # test_fdpassing_skeleton_finalize (GObject *object) 617s # { 617s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * test_fdpassing_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 617s # * 617s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 617s # */ 617s # TestFDPassing * 617s # test_fdpassing_skeleton_new (void) 617s # { 617s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 15 __main__.TestCodegen.test_generate_rst 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmps6rv5x9r 617s # /tmp/tmps6rv5x9r/tmpqqf04tgf.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps6rv5x9r/tmpqqf04tgf.xml', '--generate-rst', 'test'] 617s # Return code: 0 617s # Output: 617s # 617s # Error: 617s ok 16 __main__.TestCodegen.test_generate_rst_method 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpd7y7lv9c 617s # /tmp/tmpd7y7lv9c/tmpdrut4zeb.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd7y7lv9c/tmpdrut4zeb.xml', '--generate-rst', 'test'] 617s # Return code: 0 617s # Output: 617s # 617s # Error: 617s ok 17 __main__.TestCodegen.test_generate_rst_property 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpb8tm1al5 617s # /tmp/tmpb8tm1al5/tmpyv253tnm.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb8tm1al5/tmpyv253tnm.xml', '--generate-rst', 'test'] 617s # Return code: 0 617s # Output: 617s # 617s # Error: 617s ok 18 __main__.TestCodegen.test_generate_rst_signal 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmp2le5dnij 617s # /tmp/tmp2le5dnij/tmpbq96adn9.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2le5dnij/tmpbq96adn9.xml', '--generate-rst', 'test'] 617s # Return code: 0 617s # Output: 617s # 617s # Error: 617s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmp0eflw89_ 617s # /tmp/tmp0eflw89_/tmp_5_uwi2l.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0eflw89_/tmp_5_uwi2l.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 617s # GClosure *closure, 617s # GValue *return_value G_GNUC_UNUSED, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 617s # (void *data1, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv, 617s # void *data2); 617s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # 617s # g_return_if_fail (n_param_values == 19); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # callback (data1, 617s # g_marshal_value_peek_boolean (param_values + 1), 617s # g_marshal_value_peek_uchar (param_values + 2), 617s # g_marshal_value_peek_int (param_values + 3), 617s # g_marshal_value_peek_uint (param_values + 4), 617s # g_marshal_value_peek_int (param_values + 5), 617s # g_marshal_value_peek_uint (param_values + 6), 617s # g_marshal_value_peek_int64 (param_values + 7), 617s # g_marshal_value_peek_uint64 (param_values + 8), 617s # g_marshal_value_peek_double (param_values + 9), 617s # g_marshal_value_peek_string (param_values + 10), 617s # g_marshal_value_peek_string (param_values + 11), 617s # g_marshal_value_peek_string (param_values + 12), 617s # g_marshal_value_peek_variant (param_values + 13), 617s # g_marshal_value_peek_string (param_values + 14), 617s # g_marshal_value_peek_boxed (param_values + 15), 617s # g_marshal_value_peek_boxed (param_values + 16), 617s # g_marshal_value_peek_boxed (param_values + 17), 617s # g_marshal_value_peek_variant (param_values + 18), 617s # data2); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_i", 617s # (gchar *) "i", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_u", 617s # (gchar *) "u", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SignalWithManyArgs", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 617s # NULL 617s # }, 617s # "signal-with-many-args" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::signal-with-many-args: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_b: Argument. 617s # * @arg_an_y: Argument. 617s # * @arg_an_n: Argument. 617s # * @arg_an_q: Argument. 617s # * @arg_an_i: Argument. 617s # * @arg_an_u: Argument. 617s # * @arg_an_x: Argument. 617s # * @arg_an_t: Argument. 617s # * @arg_an_d: Argument. 617s # * @arg_an_s: Argument. 617s # * @arg_an_o: Argument. 617s # * @arg_an_g: Argument. 617s # * @arg_an_h: Argument. 617s # * @arg_an_ay: Argument. 617s # * @arg_an_as: Argument. 617s # * @arg_an_ao: Argument. 617s # * @arg_an_aay: Argument. 617s # * @arg_an_asv: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 617s # g_signal_new ("signal-with-many-args", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 617s # G_TYPE_NONE, 617s # 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); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_signal_with_many_args: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_b: Argument to pass with the signal. 617s # * @arg_an_y: Argument to pass with the signal. 617s # * @arg_an_n: Argument to pass with the signal. 617s # * @arg_an_q: Argument to pass with the signal. 617s # * @arg_an_i: Argument to pass with the signal. 617s # * @arg_an_u: Argument to pass with the signal. 617s # * @arg_an_x: Argument to pass with the signal. 617s # * @arg_an_t: Argument to pass with the signal. 617s # * @arg_an_d: Argument to pass with the signal. 617s # * @arg_an_s: Argument to pass with the signal. 617s # * @arg_an_o: Argument to pass with the signal. 617s # * @arg_an_g: Argument to pass with the signal. 617s # * @arg_an_h: Argument to pass with the signal. 617s # * @arg_an_ay: Argument to pass with the signal. 617s # * @arg_an_as: Argument to pass with the signal. 617s # * @arg_an_ao: Argument to pass with the signal. 617s # * @arg_an_aay: Argument to pass with the signal. 617s # * @arg_an_asv: Argument to pass with the signal. 617s # * 617s # * Emits the "SignalWithManyArgs" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_signal_with_many_args ( 617s # OrgProjectSignalingIface *object, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv) 617s # { 617s # 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); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_signaling_iface_skeleton_handle_method_call, 617s # _org_project_signaling_iface_skeleton_handle_get_property, 617s # _org_project_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 617s # OrgProjectSignalingIface *object, 617s # gboolean arg_an_b, 617s # guchar arg_an_y, 617s # gint16 arg_an_n, 617s # guint16 arg_an_q, 617s # gint arg_an_i, 617s # guint arg_an_u, 617s # gint64 arg_an_x, 617s # guint64 arg_an_t, 617s # gdouble arg_an_d, 617s # const gchar *arg_an_s, 617s # const gchar *arg_an_o, 617s # const gchar *arg_an_g, 617s # GVariant *arg_an_h, 617s # const gchar *arg_an_ay, 617s # const gchar *const *arg_an_as, 617s # const gchar *const *arg_an_ao, 617s # const gchar *const *arg_an_aay, 617s # GVariant *arg_an_asv) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 617s # arg_an_b, 617s # arg_an_y, 617s # arg_an_n, 617s # arg_an_q, 617s # arg_an_i, 617s # arg_an_u, 617s # arg_an_x, 617s # arg_an_t, 617s # arg_an_d, 617s # arg_an_s, 617s # arg_an_o, 617s # arg_an_g, 617s # arg_an_h, 617s # arg_an_ay, 617s # arg_an_as, 617s # arg_an_ao, 617s # arg_an_aay, 617s # arg_an_asv)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmphcezql83 617s # /tmp/tmphcezql83/tmpodu4a2c0.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphcezql83/tmpodu4a2c0.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_VOID__INT64 ( 617s # GClosure *closure, 617s # GValue *return_value G_GNUC_UNUSED, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 617s # (void *data1, 617s # gint64 arg_an_x, 617s # void *data2); 617s # _GDbusCodegenMarshalVoid_Int64Func callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # callback (data1, 617s # g_marshal_value_peek_int64 (param_values + 1), 617s # data2); 617s # } 617s # 617s # static void 617s # _g_dbus_codegen_marshal_VOID__UINT64 ( 617s # GClosure *closure, 617s # GValue *return_value G_GNUC_UNUSED, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint G_GNUC_UNUSED, 617s # void *marshal_data) 617s # { 617s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 617s # (void *data1, 617s # guint64 arg_an_t, 617s # void *data2); 617s # _GDbusCodegenMarshalVoid_Uint64Func callback; 617s # GCClosure *cc = (GCClosure*) closure; 617s # void *data1, *data2; 617s # 617s # g_return_if_fail (n_param_values == 2); 617s # 617s # if (G_CCLOSURE_SWAP_DATA (closure)) 617s # { 617s # data1 = closure->data; 617s # data2 = g_value_peek_pointer (param_values + 0); 617s # } 617s # else 617s # { 617s # data1 = g_value_peek_pointer (param_values + 0); 617s # data2 = closure->data; 617s # } 617s # 617s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 617s # (marshal_data ? marshal_data : cc->callback); 617s # 617s # callback (data1, 617s # g_marshal_value_peek_uint64 (param_values + 1), 617s # data2); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "NoArgSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "no-arg-signal" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalB", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-b" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalY", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-y" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalN", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-n" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalQ", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-q" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_i", 617s # (gchar *) "i", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalI", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-i" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_u", 617s # (gchar *) "u", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalU", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-u" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_x", 617s # (gchar *) "x", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalX", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-x" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_t", 617s # (gchar *) "t", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalT", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-t" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_d", 617s # (gchar *) "d", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalD", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-d" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_s", 617s # (gchar *) "s", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalS", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-s" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_o", 617s # (gchar *) "o", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalO", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-o" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_g", 617s # (gchar *) "g", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalG", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-g" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_h", 617s # (gchar *) "h", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalH", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-h" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ay", 617s # (gchar *) "ay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalAY", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-ay" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_as", 617s # (gchar *) "as", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalAS", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-as" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_ao", 617s # (gchar *) "ao", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalAO", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-ao" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_aay", 617s # (gchar *) "aay", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalAAY", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-aay" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "an_asv", 617s # (gchar *) "a{sv}", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalASV", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-asv" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__BOOLEAN (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__UCHAR (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__INT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__UINT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__INT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__UINT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__DOUBLE (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__STRING (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__STRING (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__STRING (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VARIANT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__STRING (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__BOXED (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__BOXED (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__BOXED (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VARIANT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 617s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 617s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 617s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 617s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 617s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 617s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 617s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 617s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 617s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 617s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 617s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 617s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 617s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 617s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 617s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 617s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 617s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 617s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::no-arg-signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 617s # g_signal_new ("no-arg-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_no_arg_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-b: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_b: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 617s # g_signal_new ("single-arg-signal-b", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_BOOLEAN); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-y: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_y: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 617s # g_signal_new ("single-arg-signal-y", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_UCHAR); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-n: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_n: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 617s # g_signal_new ("single-arg-signal-n", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_INT); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-q: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_q: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 617s # g_signal_new ("single-arg-signal-q", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_UINT); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-i: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_i: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 617s # g_signal_new ("single-arg-signal-i", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_INT); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-u: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_u: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 617s # g_signal_new ("single-arg-signal-u", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_UINT); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-x: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_x: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 617s # g_signal_new ("single-arg-signal-x", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_INT64); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-t: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_t: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 617s # g_signal_new ("single-arg-signal-t", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_UINT64); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-d: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_d: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 617s # g_signal_new ("single-arg-signal-d", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_DOUBLE); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-s: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_s: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 617s # g_signal_new ("single-arg-signal-s", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRING); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-o: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_o: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 617s # g_signal_new ("single-arg-signal-o", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRING); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-g: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_g: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 617s # g_signal_new ("single-arg-signal-g", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRING); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-h: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_h: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 617s # g_signal_new ("single-arg-signal-h", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_VARIANT); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-ay: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_ay: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 617s # g_signal_new ("single-arg-signal-ay", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRING); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-as: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_as: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 617s # g_signal_new ("single-arg-signal-as", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRV); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-ao: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_ao: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 617s # g_signal_new ("single-arg-signal-ao", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRV); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-aay: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_aay: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 617s # g_signal_new ("single-arg-signal-aay", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_STRV); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-asv: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_asv: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 617s # g_signal_new ("single-arg-signal-asv", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_VARIANT); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_no_arg_signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * Emits the "NoArgSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_no_arg_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_b: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_b: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalB" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_b ( 617s # OrgProjectSignalingIface *object, 617s # gboolean arg_an_b) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_y: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_y: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalY" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_y ( 617s # OrgProjectSignalingIface *object, 617s # guchar arg_an_y) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_n: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_n: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalN" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_n ( 617s # OrgProjectSignalingIface *object, 617s # gint16 arg_an_n) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_q: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_q: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalQ" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_q ( 617s # OrgProjectSignalingIface *object, 617s # guint16 arg_an_q) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_i: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_i: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalI" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_i ( 617s # OrgProjectSignalingIface *object, 617s # gint arg_an_i) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_u: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_u: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalU" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_u ( 617s # OrgProjectSignalingIface *object, 617s # guint arg_an_u) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_x: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_x: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalX" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_x ( 617s # OrgProjectSignalingIface *object, 617s # gint64 arg_an_x) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_t: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_t: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalT" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_t ( 617s # OrgProjectSignalingIface *object, 617s # guint64 arg_an_t) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_d: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_d: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalD" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_d ( 617s # OrgProjectSignalingIface *object, 617s # gdouble arg_an_d) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_s: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_s: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalS" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_s ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_s) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_o: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_o: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalO" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_o ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_o) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_g: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_g: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalG" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_g ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_g) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_h: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_h: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalH" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_h ( 617s # OrgProjectSignalingIface *object, 617s # GVariant *arg_an_h) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_ay: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_ay: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalAY" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_ay ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_ay) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_as: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_as: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalAS" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_as ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *const *arg_an_as) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_ao: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_ao: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalAO" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_ao ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *const *arg_an_ao) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_aay: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_aay: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalAAY" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_aay ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *const *arg_an_aay) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_asv: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_an_asv: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalASV" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_asv ( 617s # OrgProjectSignalingIface *object, 617s # GVariant *arg_an_asv) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_signaling_iface_skeleton_handle_method_call, 617s # _org_project_signaling_iface_skeleton_handle_get_property, 617s # _org_project_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_no_arg_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 617s # OrgProjectSignalingIface *object, 617s # gboolean arg_an_b) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 617s # arg_an_b)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 617s # OrgProjectSignalingIface *object, 617s # guchar arg_an_y) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 617s # arg_an_y)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 617s # OrgProjectSignalingIface *object, 617s # gint16 arg_an_n) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 617s # arg_an_n)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 617s # OrgProjectSignalingIface *object, 617s # guint16 arg_an_q) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 617s # arg_an_q)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 617s # OrgProjectSignalingIface *object, 617s # gint arg_an_i) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 617s # arg_an_i)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 617s # OrgProjectSignalingIface *object, 617s # guint arg_an_u) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 617s # arg_an_u)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 617s # OrgProjectSignalingIface *object, 617s # gint64 arg_an_x) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 617s # arg_an_x)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 617s # OrgProjectSignalingIface *object, 617s # guint64 arg_an_t) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 617s # arg_an_t)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 617s # OrgProjectSignalingIface *object, 617s # gdouble arg_an_d) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 617s # arg_an_d)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_s) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 617s # arg_an_s)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_o) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 617s # arg_an_o)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_g) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 617s # arg_an_g)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 617s # OrgProjectSignalingIface *object, 617s # GVariant *arg_an_h) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 617s # arg_an_h)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *arg_an_ay) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 617s # arg_an_ay)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *const *arg_an_as) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 617s # arg_an_as)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *const *arg_an_ao) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 617s # arg_an_ao)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 617s # OrgProjectSignalingIface *object, 617s # const gchar *const *arg_an_aay) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 617s # arg_an_aay)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 617s # OrgProjectSignalingIface *object, 617s # GVariant *arg_an_asv) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 617s # arg_an_asv)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 617s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 617s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 617s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 617s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 617s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 617s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 617s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 617s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 617s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 617s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 617s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 617s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 617s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 617s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 617s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 617s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 617s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 617s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpf5ahq1te 617s # /tmp/tmpf5ahq1te/tmpwwnf5ogj.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpf5ahq1te/tmpwwnf5ogj.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.UsefulInterface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectUsefulInterface 617s # * @title: OrgProjectUsefulInterface 617s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 617s # { 617s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.UsefulInterface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-useful-interface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_useful_interface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_useful_interface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_useful_interface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectUsefulInterface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 617s # */ 617s # 617s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectUsefulInterface::simple-signal: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_useful_interface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_emit_simple_signal: 617s # * @object: A #OrgProjectUsefulInterface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_useful_interface_emit_simple_signal ( 617s # OrgProjectUsefulInterface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxy: 617s # * 617s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 617s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 617s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_useful_interface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # g_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); 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeleton: 617s # * 617s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectUsefulInterfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_useful_interface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_useful_interface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_useful_interface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 617s # { 617s # _org_project_useful_interface_skeleton_handle_method_call, 617s # _org_project_useful_interface_skeleton_handle_get_property, 617s # _org_project_useful_interface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_useful_interface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_useful_interface_on_signal_simple_signal ( 617s # OrgProjectUsefulInterface *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_useful_interface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 617s # } 617s # 617s # /** 617s # * org_project_useful_interface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectUsefulInterface * 617s # org_project_useful_interface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.OtherIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectOtherIface 617s # * @title: OrgProjectOtherIface 617s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.OtherIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.OtherIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-other-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_other_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_other_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_other_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_other_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectOtherIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.OtherIface. 617s # */ 617s # 617s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectOtherIface::simple-signal: 617s # * @object: A #OrgProjectOtherIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_other_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # } 617s # 617s # /** 617s # * org_project_other_iface_emit_simple_signal: 617s # * @object: A #OrgProjectOtherIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_other_iface_emit_simple_signal ( 617s # OrgProjectOtherIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectOtherIfaceProxy: 617s # * 617s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectOtherIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectOtherIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_other_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_other_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_other_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_other_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_other_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherIface * 617s # org_project_other_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherIface * 617s # org_project_other_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_other_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_other_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_other_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherIface * 617s # org_project_other_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherIface * 617s # org_project_other_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectOtherIfaceSkeleton: 617s # * 617s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectOtherIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectOtherIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_other_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_other_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_other_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 617s # { 617s # _org_project_other_iface_skeleton_handle_method_call, 617s # _org_project_other_iface_skeleton_handle_get_property, 617s # _org_project_other_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_other_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_other_iface_on_signal_simple_signal ( 617s # OrgProjectOtherIface *object) 617s # { 617s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_other_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 617s # } 617s # 617s # /** 617s # * org_project_other_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectOtherIface * 617s # org_project_other_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmpd4hrifcn 617s # /tmp/tmpd4hrifcn/tmpg4_mrvav.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd4hrifcn/tmpg4_mrvav.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::simple-signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_simple_signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_signaling_iface_skeleton_handle_method_call, 617s # _org_project_signaling_iface_skeleton_handle_get_property, 617s # _org_project_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.OtherSignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectOtherSignalingIface 617s # * @title: OrgProjectOtherSignalingIface 617s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.OtherSignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-other-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_other_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_other_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectOtherSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 617s # */ 617s # 617s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectOtherSignalingIface::simple-signal: 617s # * @object: A #OrgProjectOtherSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_other_signaling_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_emit_simple_signal: 617s # * @object: A #OrgProjectOtherSignalingIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_other_signaling_iface_emit_simple_signal ( 617s # OrgProjectOtherSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectOtherSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_other_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherSignalingIface * 617s # org_project_other_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherSignalingIface * 617s # org_project_other_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_other_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_other_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherSignalingIface * 617s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectOtherSignalingIface * 617s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectOtherSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectOtherSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_other_signaling_iface_skeleton_handle_method_call, 617s # _org_project_other_signaling_iface_skeleton_handle_get_property, 617s # _org_project_other_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_other_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_other_signaling_iface_on_signal_simple_signal ( 617s # OrgProjectOtherSignalingIface *object) 617s # { 617s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 617s # } 617s # 617s # /** 617s # * org_project_other_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectOtherSignalingIface * 617s # org_project_other_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 617s # gdbus-codegen: /usr/bin/gdbus-codegen 617s # tmpdir: /tmp/tmp8zzm14kv 617s # /tmp/tmp8zzm14kv/tmp6cc0t32o.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp6cc0t32o.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_b", 617s # (gchar *) "b", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalB", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-b" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__BOOLEAN (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 617s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::simple-signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-b: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_b: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 617s # g_signal_new ("single-arg-signal-b", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_BOOLEAN); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_simple_signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_b: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_b: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalB" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_b ( 617s # OrgProjectSignalingIface *object, 617s # gboolean arg_arg_b) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_signaling_iface_skeleton_handle_method_call, 617s # _org_project_signaling_iface_skeleton_handle_get_property, 617s # _org_project_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 617s # OrgProjectSignalingIface *object, 617s # gboolean arg_arg_b) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 617s # arg_arg_b)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 617s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmp8zzm14kv/tmpu5tkmehd.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpu5tkmehd.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_y", 617s # (gchar *) "y", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalY", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-y" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__UCHAR (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 617s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::simple-signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-y: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_y: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 617s # g_signal_new ("single-arg-signal-y", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_UCHAR); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_simple_signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_y: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_y: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalY" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_y ( 617s # OrgProjectSignalingIface *object, 617s # guchar arg_arg_y) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_signaling_iface_skeleton_handle_method_call, 617s # _org_project_signaling_iface_skeleton_handle_get_property, 617s # _org_project_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 617s # OrgProjectSignalingIface *object, 617s # guchar arg_arg_y) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 617s # arg_arg_y)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 617s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmp8zzm14kv/tmp_acqkqgr.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp_acqkqgr.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_n", 617s # (gchar *) "n", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalN", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-n" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__INT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 617s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::simple-signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-n: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_n: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 617s # g_signal_new ("single-arg-signal-n", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_INT); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_simple_signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_n: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_n: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalN" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_n ( 617s # OrgProjectSignalingIface *object, 617s # gint16 arg_arg_n) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 617s # const gchar *sender_name G_GNUC_UNUSED, 617s # const gchar *signal_name, 617s # GVariant *parameters) 617s # { 617s # _ExtendedGDBusSignalInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # gsize n; 617s # guint signal_id; 617s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 617s # if (info == NULL) 617s # return; 617s # num_params = g_variant_n_children (parameters); 617s # paramv = g_new0 (GValue, num_params + 1); 617s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[0], proxy); 617s # g_variant_iter_init (&iter, parameters); 617s # n = 1; 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_signal_emitv (paramv, signal_id, 0, NULL); 617s # for (n = 0; n < num_params + 1; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 617s # GVariant *changed_properties, 617s # const gchar *const *invalidated_properties) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 617s # guint n; 617s # const gchar *key; 617s # GVariantIter *iter; 617s # _ExtendedGDBusPropertyInfo *info; 617s # g_variant_get (changed_properties, "a{sv}", &iter); 617s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 617s # g_datalist_remove_data (&proxy->priv->qdata, key); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # g_variant_iter_free (iter); 617s # for (n = 0; invalidated_properties[n] != NULL; n++) 617s # { 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 617s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 617s # if (info != NULL) 617s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 617s # } 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 617s # #else 617s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 617s # #endif 617s # 617s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusProxyClass *proxy_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 617s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 617s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 617s # 617s # proxy_class = G_DBUS_PROXY_CLASS (klass); 617s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 617s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_sync: 617s # * @connection: A #GDBusConnection. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_sync ( 617s # GDBusConnection *connection, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 617s # * @user_data: User data to pass to @callback. 617s # * 617s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 617s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 617s # */ 617s # void 617s # org_project_signaling_iface_proxy_new_for_bus ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GAsyncReadyCallback callback, 617s # gpointer user_data) 617s # { 617s # 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); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_finish: 617s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 617s # * @error: Return location for error or %NULL 617s # * 617s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_finish ( 617s # GAsyncResult *res, 617s # GError **error) 617s # { 617s # GObject *ret; 617s # GObject *source_object; 617s # source_object = g_async_result_get_source_object (res); 617s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 617s # g_object_unref (source_object); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_proxy_new_for_bus_sync: 617s # * @bus_type: A #GBusType. 617s # * @flags: Flags from the #GDBusProxyFlags enumeration. 617s # * @name: A bus name (well-known or unique). 617s # * @object_path: An object path. 617s # * @cancellable: (nullable): A #GCancellable or %NULL. 617s # * @error: Return location for error or %NULL 617s # * 617s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 617s # * 617s # * The calling thread is blocked until a reply is received. 617s # * 617s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_proxy_new_for_bus_sync ( 617s # GBusType bus_type, 617s # GDBusProxyFlags flags, 617s # const gchar *name, 617s # const gchar *object_path, 617s # GCancellable *cancellable, 617s # GError **error) 617s # { 617s # GInitable *ret; 617s # 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); 617s # if (ret != NULL) 617s # return ORG_PROJECT_SIGNALING_IFACE (ret); 617s # else 617s # return NULL; 617s # } 617s # 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeleton: 617s # * 617s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceSkeletonClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceSkeletonPrivate 617s # { 617s # GValue *properties; 617s # GList *changed_properties; 617s # GSource *changed_properties_idle_source; 617s # GMainContext *context; 617s # GMutex lock; 617s # }; 617s # 617s # static void 617s # _org_project_signaling_iface_skeleton_handle_method_call ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name, 617s # const gchar *method_name, 617s # GVariant *parameters, 617s # GDBusMethodInvocation *invocation, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # _ExtendedGDBusMethodInfo *info; 617s # GVariantIter iter; 617s # GVariant *child; 617s # GValue *paramv; 617s # gsize num_params; 617s # guint num_extra; 617s # gsize n; 617s # guint signal_id; 617s # GValue return_value = G_VALUE_INIT; 617s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 617s # g_assert (info != NULL); 617s # num_params = g_variant_n_children (parameters); 617s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 617s # n = 0; 617s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_set_object (¶mv[n++], skeleton); 617s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 617s # g_value_set_object (¶mv[n++], invocation); 617s # if (info->pass_fdlist) 617s # { 617s # #ifdef G_OS_UNIX 617s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 617s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 617s # #else 617s # g_assert_not_reached (); 617s # #endif 617s # } 617s # g_variant_iter_init (&iter, parameters); 617s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 617s # { 617s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 617s # if (arg_info->use_gvariant) 617s # { 617s # g_value_init (¶mv[n], G_TYPE_VARIANT); 617s # g_value_set_variant (¶mv[n], child); 617s # n++; 617s # } 617s # else 617s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 617s # g_variant_unref (child); 617s # } 617s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 617s # g_value_init (&return_value, G_TYPE_BOOLEAN); 617s # g_signal_emitv (paramv, signal_id, 0, &return_value); 617s # if (!g_value_get_boolean (&return_value)) 617s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 617s # g_value_unset (&return_value); 617s # for (n = 0; n < num_params + num_extra; n++) 617s # g_value_unset (¶mv[n]); 617s # g_free (paramv); 617s # } 617s # 617s # static GVariant * 617s # _org_project_signaling_iface_skeleton_handle_get_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # GVariant *ret; 617s # ret = NULL; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # g_value_init (&value, pspec->value_type); 617s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 617s # g_value_unset (&value); 617s # } 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _org_project_signaling_iface_skeleton_handle_set_property ( 617s # GDBusConnection *connection G_GNUC_UNUSED, 617s # const gchar *sender G_GNUC_UNUSED, 617s # const gchar *object_path G_GNUC_UNUSED, 617s # const gchar *interface_name G_GNUC_UNUSED, 617s # const gchar *property_name, 617s # GVariant *variant, 617s # GError **error, 617s # gpointer user_data) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 617s # GValue value = G_VALUE_INIT; 617s # GParamSpec *pspec; 617s # _ExtendedGDBusPropertyInfo *info; 617s # gboolean ret; 617s # ret = FALSE; 617s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 617s # g_assert (info != NULL); 617s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 617s # if (pspec == NULL) 617s # { 617s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 617s # } 617s # else 617s # { 617s # if (info->use_gvariant) 617s # g_value_set_variant (&value, variant); 617s # else 617s # g_dbus_gvariant_to_gvalue (variant, &value); 617s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 617s # g_value_unset (&value); 617s # ret = TRUE; 617s # } 617s # return ret; 617s # } 617s # 617s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 617s # { 617s # _org_project_signaling_iface_skeleton_handle_method_call, 617s # _org_project_signaling_iface_skeleton_handle_get_property, 617s # _org_project_signaling_iface_skeleton_handle_set_property, 617s # {NULL} 617s # }; 617s # 617s # static GDBusInterfaceInfo * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return org_project_signaling_iface_interface_info (); 617s # } 617s # 617s # static GDBusInterfaceVTable * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 617s # { 617s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 617s # } 617s # 617s # static GVariant * 617s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 617s # 617s # GVariantBuilder builder; 617s # guint n; 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 617s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #else 617s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 617s # #endif 617s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 617s # goto out; 617s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 617s # { 617s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 617s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 617s # { 617s # GVariant *value; 617s # 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); 617s # if (value != NULL) 617s # { 617s # g_variant_take_ref (value); 617s # g_variant_builder_add (&builder, "{sv}", info->name, value); 617s # g_variant_unref (value); 617s # } 617s # } 617s # } 617s # out: 617s # return g_variant_builder_end (&builder); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void 617s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 617s # OrgProjectSignalingIface *object, 617s # gint16 arg_arg_n) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # 617s # GList *connections, *l; 617s # GVariant *signal_variant; 617s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 617s # 617s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 617s # arg_arg_n)); 617s # for (l = connections; l != NULL; l = l->next) 617s # { 617s # GDBusConnection *connection = l->data; 617s # g_dbus_connection_emit_signal (connection, 617s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 617s # signal_variant, NULL); 617s # } 617s # g_variant_unref (signal_variant); 617s # g_list_free_full (connections, g_object_unref); 617s # } 617s # 617s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_skeleton_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 617s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 617s # if (skeleton->priv->changed_properties_idle_source != NULL) 617s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 617s # g_main_context_unref (skeleton->priv->context); 617s # g_mutex_clear (&skeleton->priv->lock); 617s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 617s # { 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 617s # #else 617s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 617s # #endif 617s # 617s # g_mutex_init (&skeleton->priv->lock); 617s # skeleton->priv->context = g_main_context_ref_thread_default (); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 617s # { 617s # GObjectClass *gobject_class; 617s # GDBusInterfaceSkeletonClass *skeleton_class; 617s # 617s # gobject_class = G_OBJECT_CLASS (klass); 617s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 617s # 617s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 617s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 617s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 617s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 617s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 617s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 617s # #endif 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 617s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_skeleton_new: 617s # * 617s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 617s # * 617s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 617s # */ 617s # OrgProjectSignalingIface * 617s # org_project_signaling_iface_skeleton_new (void) 617s # { 617s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 617s # } 617s # Error: 617s # 617s # /tmp/tmp8zzm14kv/tmps8gzlanm.xml: 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # 617s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmps8gzlanm.xml', '--output', '-', '--body'] 617s # Return code: 0 617s # Output: 617s # /* 617s # * This file is generated by gdbus-codegen, do not modify it. 617s # * 617s # * The license of this code is the same as for the D-Bus interface description 617s # * it was derived from. Note that it links to GLib, so must comply with the 617s # * LGPL linking clauses. 617s # */ 617s # 617s # #ifdef HAVE_CONFIG_H 617s # # include "config.h" 617s # #endif 617s # 617s # #include 617s # #ifdef G_OS_UNIX 617s # # include 617s # #endif 617s # 617s # #ifdef G_ENABLE_DEBUG 617s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 617s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 617s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 617s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 617s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 617s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 617s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 617s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 617s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 617s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 617s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 617s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 617s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 617s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 617s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 617s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 617s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 617s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 617s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 617s # #else /* !G_ENABLE_DEBUG */ 617s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 617s # * Do not access GValues directly in your code. Instead, use the 617s # * g_value_get_*() functions 617s # */ 617s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 617s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 617s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 617s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 617s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 617s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 617s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 617s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 617s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 617s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 617s # #endif /* !G_ENABLE_DEBUG */ 617s # 617s # typedef struct 617s # { 617s # GDBusArgInfo parent_struct; 617s # gboolean use_gvariant; 617s # } _ExtendedGDBusArgInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusMethodInfo parent_struct; 617s # const gchar *signal_name; 617s # gboolean pass_fdlist; 617s # } _ExtendedGDBusMethodInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusSignalInfo parent_struct; 617s # const gchar *signal_name; 617s # } _ExtendedGDBusSignalInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusPropertyInfo parent_struct; 617s # const gchar *hyphen_name; 617s # guint use_gvariant : 1; 617s # guint emits_changed_signal : 1; 617s # } _ExtendedGDBusPropertyInfo; 617s # 617s # typedef struct 617s # { 617s # GDBusInterfaceInfo parent_struct; 617s # const gchar *hyphen_name; 617s # } _ExtendedGDBusInterfaceInfo; 617s # 617s # typedef struct 617s # { 617s # const _ExtendedGDBusPropertyInfo *info; 617s # guint prop_id; 617s # GValue orig_value; /* the value before the change */ 617s # } ChangedProperty; 617s # 617s # static void 617s # _changed_property_free (ChangedProperty *data) 617s # { 617s # g_value_unset (&data->orig_value); 617s # g_free (data); 617s # } 617s # 617s # static gboolean 617s # _g_strv_equal0 (gchar **a, gchar **b) 617s # { 617s # gboolean ret = FALSE; 617s # guint n; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # if (g_strv_length (a) != g_strv_length (b)) 617s # goto out; 617s # for (n = 0; a[n] != NULL; n++) 617s # if (g_strcmp0 (a[n], b[n]) != 0) 617s # goto out; 617s # ret = TRUE; 617s # out: 617s # return ret; 617s # } 617s # 617s # static gboolean 617s # _g_variant_equal0 (GVariant *a, GVariant *b) 617s # { 617s # gboolean ret = FALSE; 617s # if (a == NULL && b == NULL) 617s # { 617s # ret = TRUE; 617s # goto out; 617s # } 617s # if (a == NULL || b == NULL) 617s # goto out; 617s # ret = g_variant_equal (a, b); 617s # out: 617s # return ret; 617s # } 617s # 617s # G_GNUC_UNUSED static gboolean 617s # _g_value_equal (const GValue *a, const GValue *b) 617s # { 617s # gboolean ret = FALSE; 617s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 617s # switch (G_VALUE_TYPE (a)) 617s # { 617s # case G_TYPE_BOOLEAN: 617s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 617s # break; 617s # case G_TYPE_UCHAR: 617s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 617s # break; 617s # case G_TYPE_INT: 617s # ret = (g_value_get_int (a) == g_value_get_int (b)); 617s # break; 617s # case G_TYPE_UINT: 617s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 617s # break; 617s # case G_TYPE_INT64: 617s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 617s # break; 617s # case G_TYPE_UINT64: 617s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 617s # break; 617s # case G_TYPE_DOUBLE: 617s # { 617s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 617s # gdouble da = g_value_get_double (a); 617s # gdouble db = g_value_get_double (b); 617s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 617s # } 617s # break; 617s # case G_TYPE_STRING: 617s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 617s # break; 617s # case G_TYPE_VARIANT: 617s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 617s # break; 617s # default: 617s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 617s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 617s # else 617s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 617s # break; 617s # } 617s # return ret; 617s # } 617s # 617s # /* ------------------------------------------------------------------------ 617s # * Code for interface org.project.SignalingIface 617s # * ------------------------------------------------------------------------ 617s # */ 617s # 617s # /** 617s # * SECTION:OrgProjectSignalingIface 617s # * @title: OrgProjectSignalingIface 617s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 617s # * 617s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 617s # */ 617s # 617s # enum 617s # { 617s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 617s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 617s # }; 617s # 617s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 617s # 617s # /* ---- Introspection data for org.project.SignalingIface ---- */ 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SimpleSignal", 617s # NULL, 617s # NULL 617s # }, 617s # "simple-signal" 617s # }; 617s # 617s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "arg_q", 617s # (gchar *) "q", 617s # NULL 617s # }, 617s # FALSE 617s # }; 617s # 617s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 617s # { 617s # { 617s # -1, 617s # (gchar *) "SingleArgSignalQ", 617s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 617s # NULL 617s # }, 617s # "single-arg-signal-q" 617s # }; 617s # 617s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 617s # { 617s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 617s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 617s # NULL 617s # }; 617s # 617s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 617s # { 617s # { 617s # -1, 617s # (gchar *) "org.project.SignalingIface", 617s # NULL, 617s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 617s # NULL, 617s # NULL 617s # }, 617s # "org-project-signaling-iface", 617s # }; 617s # 617s # 617s # /** 617s # * org_project_signaling_iface_interface_info: 617s # * 617s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 617s # * 617s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 617s # */ 617s # GDBusInterfaceInfo * 617s # org_project_signaling_iface_interface_info (void) 617s # { 617s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_override_properties: 617s # * @klass: The class structure for a #GObject derived class. 617s # * @property_id_begin: The property id to assign to the first overridden property. 617s # * 617s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 617s # * The properties are overridden in the order they are defined. 617s # * 617s # * Returns: The last property id. 617s # */ 617s # guint 617s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 617s # { 617s # return property_id_begin - 1; 617s # } 617s # 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_simple_signal ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__VOID (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # inline static void 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 617s # GClosure *closure, 617s # GValue *return_value, 617s # unsigned int n_param_values, 617s # const GValue *param_values, 617s # void *invocation_hint, 617s # void *marshal_data) 617s # { 617s # g_cclosure_marshal_VOID__UINT (closure, 617s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 617s # } 617s # 617s # 617s # /** 617s # * OrgProjectSignalingIface: 617s # * 617s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceIface: 617s # * @parent_iface: The parent interface. 617s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 617s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 617s # * 617s # * Virtual table for the D-Bus interface org.project.SignalingIface. 617s # */ 617s # 617s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 617s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 617s # 617s # static void 617s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 617s # { 617s # /* GObject signals for received D-Bus signals: */ 617s # /** 617s # * OrgProjectSignalingIface::simple-signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 617s # g_signal_new ("simple-signal", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_simple_signal, 617s # G_TYPE_NONE, 617s # 0); 617s # 617s # /** 617s # * OrgProjectSignalingIface::single-arg-signal-q: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_q: Argument. 617s # * 617s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 617s # * 617s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 617s # */ 617s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 617s # g_signal_new ("single-arg-signal-q", 617s # G_TYPE_FROM_INTERFACE (iface), 617s # G_SIGNAL_RUN_LAST, 617s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 617s # NULL, 617s # NULL, 617s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 617s # G_TYPE_NONE, 617s # 1, G_TYPE_UINT); 617s # 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_simple_signal: 617s # * @object: A #OrgProjectSignalingIface. 617s # * 617s # * Emits the "SimpleSignal" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_simple_signal ( 617s # OrgProjectSignalingIface *object) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 617s # } 617s # 617s # /** 617s # * org_project_signaling_iface_emit_single_arg_signal_q: 617s # * @object: A #OrgProjectSignalingIface. 617s # * @arg_arg_q: Argument to pass with the signal. 617s # * 617s # * Emits the "SingleArgSignalQ" D-Bus signal. 617s # */ 617s # void 617s # org_project_signaling_iface_emit_single_arg_signal_q ( 617s # OrgProjectSignalingIface *object, 617s # guint16 arg_arg_q) 617s # { 617s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 617s # } 617s # 617s # /* ------------------------------------------------------------------------ */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxy: 617s # * 617s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 617s # */ 617s # 617s # /** 617s # * OrgProjectSignalingIfaceProxyClass: 617s # * @parent_class: The parent class. 617s # * 617s # * Class structure for #OrgProjectSignalingIfaceProxy. 617s # */ 617s # 617s # struct _OrgProjectSignalingIfaceProxyPrivate 617s # { 617s # GData *qdata; 617s # }; 617s # 617s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 617s # 617s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #else 617s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 617s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 617s # 617s # #endif 617s # static void 617s # org_project_signaling_iface_proxy_finalize (GObject *object) 617s # { 617s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 617s # g_datalist_clear (&proxy->priv->qdata); 617s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 617s # static void 617s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 617s # guint prop_id G_GNUC_UNUSED, 617s # const GValue *value G_GNUC_UNUSED, 617s # GParamSpec *pspec G_GNUC_UNUSED) 617s # { 617s # } 617s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 618s # OrgProjectSignalingIface *object, 618s # guint16 arg_arg_q) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 618s # arg_arg_q)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmp94cy_7fl.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp94cy_7fl.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_i", 618s # (gchar *) "i", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalI", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-i" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__INT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-i: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_i: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 618s # g_signal_new ("single-arg-signal-i", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_INT); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_i: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_i: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalI" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_i ( 618s # OrgProjectSignalingIface *object, 618s # gint arg_arg_i) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 618s # OrgProjectSignalingIface *object, 618s # gint arg_arg_i) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 618s # arg_arg_i)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpnx3mzrss.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpnx3mzrss.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_u", 618s # (gchar *) "u", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalU", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-u" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__UINT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-u: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_u: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 618s # g_signal_new ("single-arg-signal-u", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_UINT); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_u: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_u: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalU" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_u ( 618s # OrgProjectSignalingIface *object, 618s # guint arg_arg_u) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 618s # OrgProjectSignalingIface *object, 618s # guint arg_arg_u) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 618s # arg_arg_u)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpelsigt7k.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpelsigt7k.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # static void 618s # _g_dbus_codegen_marshal_VOID__INT64 ( 618s # GClosure *closure, 618s # GValue *return_value G_GNUC_UNUSED, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint G_GNUC_UNUSED, 618s # void *marshal_data) 618s # { 618s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 618s # (void *data1, 618s # gint64 arg_arg_x, 618s # void *data2); 618s # _GDbusCodegenMarshalVoid_Int64Func callback; 618s # GCClosure *cc = (GCClosure*) closure; 618s # void *data1, *data2; 618s # 618s # g_return_if_fail (n_param_values == 2); 618s # 618s # if (G_CCLOSURE_SWAP_DATA (closure)) 618s # { 618s # data1 = closure->data; 618s # data2 = g_value_peek_pointer (param_values + 0); 618s # } 618s # else 618s # { 618s # data1 = g_value_peek_pointer (param_values + 0); 618s # data2 = closure->data; 618s # } 618s # 618s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 618s # (marshal_data ? marshal_data : cc->callback); 618s # 618s # callback (data1, 618s # g_marshal_value_peek_int64 (param_values + 1), 618s # data2); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_x", 618s # (gchar *) "x", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalX", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-x" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-x: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_x: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 618s # g_signal_new ("single-arg-signal-x", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_INT64); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_x: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_x: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalX" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_x ( 618s # OrgProjectSignalingIface *object, 618s # gint64 arg_arg_x) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 618s # OrgProjectSignalingIface *object, 618s # gint64 arg_arg_x) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 618s # arg_arg_x)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpurn24cvq.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpurn24cvq.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # static void 618s # _g_dbus_codegen_marshal_VOID__UINT64 ( 618s # GClosure *closure, 618s # GValue *return_value G_GNUC_UNUSED, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint G_GNUC_UNUSED, 618s # void *marshal_data) 618s # { 618s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 618s # (void *data1, 618s # guint64 arg_arg_t, 618s # void *data2); 618s # _GDbusCodegenMarshalVoid_Uint64Func callback; 618s # GCClosure *cc = (GCClosure*) closure; 618s # void *data1, *data2; 618s # 618s # g_return_if_fail (n_param_values == 2); 618s # 618s # if (G_CCLOSURE_SWAP_DATA (closure)) 618s # { 618s # data1 = closure->data; 618s # data2 = g_value_peek_pointer (param_values + 0); 618s # } 618s # else 618s # { 618s # data1 = g_value_peek_pointer (param_values + 0); 618s # data2 = closure->data; 618s # } 618s # 618s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 618s # (marshal_data ? marshal_data : cc->callback); 618s # 618s # callback (data1, 618s # g_marshal_value_peek_uint64 (param_values + 1), 618s # data2); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_t", 618s # (gchar *) "t", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalT", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-t" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-t: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_t: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 618s # g_signal_new ("single-arg-signal-t", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_UINT64); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_t: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_t: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalT" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_t ( 618s # OrgProjectSignalingIface *object, 618s # guint64 arg_arg_t) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 618s # OrgProjectSignalingIface *object, 618s # guint64 arg_arg_t) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 618s # arg_arg_t)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpytki2n6k.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpytki2n6k.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_d", 618s # (gchar *) "d", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalD", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-d" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__DOUBLE (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-d: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_d: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 618s # g_signal_new ("single-arg-signal-d", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_DOUBLE); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_d: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_d: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalD" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_d ( 618s # OrgProjectSignalingIface *object, 618s # gdouble arg_arg_d) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 618s # OrgProjectSignalingIface *object, 618s # gdouble arg_arg_d) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 618s # arg_arg_d)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpsvhpok38.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpsvhpok38.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_s", 618s # (gchar *) "s", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalS", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-s" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__STRING (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-s: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_s: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 618s # g_signal_new ("single-arg-signal-s", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRING); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_s: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_s: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalS" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_s ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_s) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_s) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 618s # arg_arg_s)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmphd03h6hl.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmphd03h6hl.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_o", 618s # (gchar *) "o", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalO", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-o" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__STRING (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-o: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_o: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 618s # g_signal_new ("single-arg-signal-o", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRING); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_o: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_o: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalO" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_o ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_o) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_o) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 618s # arg_arg_o)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmp199acn_h.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp199acn_h.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_g", 618s # (gchar *) "g", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalG", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-g" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__STRING (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-g: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_g: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 618s # g_signal_new ("single-arg-signal-g", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRING); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_g: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_g: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalG" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_g ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_g) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_g) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 618s # arg_arg_g)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmp6pt_s9k_.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp6pt_s9k_.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_h", 618s # (gchar *) "h", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalH", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-h" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VARIANT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-h: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_h: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 618s # g_signal_new ("single-arg-signal-h", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_VARIANT); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_h: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_h: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalH" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_h ( 618s # OrgProjectSignalingIface *object, 618s # GVariant *arg_arg_h) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 618s # OrgProjectSignalingIface *object, 618s # GVariant *arg_arg_h) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 618s # arg_arg_h)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpkyntu_7j.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpkyntu_7j.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_ay", 618s # (gchar *) "ay", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalAy", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-ay" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__STRING (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-ay: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_ay: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 618s # g_signal_new ("single-arg-signal-ay", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRING); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_ay: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_ay: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalAy" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_ay ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_ay) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *arg_arg_ay) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 618s # arg_arg_ay)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmp1ww92g_5.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp1ww92g_5.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_as", 618s # (gchar *) "as", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalAs", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-as" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__BOXED (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-as: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_as: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 618s # g_signal_new ("single-arg-signal-as", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRV); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_as: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_as: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalAs" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_as ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *const *arg_arg_as) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *const *arg_arg_as) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 618s # arg_arg_as)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmp9uem5qj_.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmp9uem5qj_.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_ao", 618s # (gchar *) "ao", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalAo", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-ao" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__BOXED (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-ao: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_ao: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 618s # g_signal_new ("single-arg-signal-ao", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRV); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_ao: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_ao: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalAo" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_ao ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *const *arg_arg_ao) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *const *arg_arg_ao) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 618s # arg_arg_ao)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpu9pej794.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpu9pej794.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_aay", 618s # (gchar *) "aay", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalAay", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-aay" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__BOXED (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-aay: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_aay: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 618s # g_signal_new ("single-arg-signal-aay", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_STRV); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_aay: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_aay: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalAay" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_aay ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *const *arg_arg_aay) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 618s # OrgProjectSignalingIface *object, 618s # const gchar *const *arg_arg_aay) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 618s # arg_arg_aay)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # /tmp/tmp8zzm14kv/tmpqua6kz6j.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8zzm14kv/tmpqua6kz6j.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 618s # { 618s # { 618s # -1, 618s # (gchar *) "arg_asv", 618s # (gchar *) "a{sv}", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SingleArgSignalAsv", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 618s # NULL 618s # }, 618s # "single-arg-signal-asv" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VARIANT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::single-arg-signal-asv: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_asv: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 618s # g_signal_new ("single-arg-signal-asv", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 618s # G_TYPE_NONE, 618s # 1, G_TYPE_VARIANT); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_single_arg_signal_asv: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_arg_asv: Argument to pass with the signal. 618s # * 618s # * Emits the "SingleArgSignalAsv" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_single_arg_signal_asv ( 618s # OrgProjectSignalingIface *object, 618s # GVariant *arg_arg_asv) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 618s # OrgProjectSignalingIface *object, 618s # GVariant *arg_arg_asv) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 618s # arg_arg_asv)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpuejy_tfj 618s # /tmp/tmpuejy_tfj/tmpepw9qm4a.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuejy_tfj/tmpepw9qm4a.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # static void 618s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 618s # GClosure *closure, 618s # GValue *return_value G_GNUC_UNUSED, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint G_GNUC_UNUSED, 618s # void *marshal_data) 618s # { 618s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 618s # (void *data1, 618s # gboolean arg_an_b, 618s # guchar arg_an_y, 618s # gint16 arg_an_n, 618s # guint16 arg_an_q, 618s # gint arg_an_i, 618s # guint arg_an_u, 618s # gint64 arg_an_x, 618s # guint64 arg_an_t, 618s # gdouble arg_an_d, 618s # const gchar *arg_an_s, 618s # const gchar *arg_an_o, 618s # const gchar *arg_an_g, 618s # GVariant *arg_an_h, 618s # const gchar *arg_an_ay, 618s # const gchar *const *arg_an_as, 618s # const gchar *const *arg_an_ao, 618s # const gchar *const *arg_an_aay, 618s # GVariant *arg_an_asv, 618s # void *data2); 618s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 618s # GCClosure *cc = (GCClosure*) closure; 618s # void *data1, *data2; 618s # 618s # g_return_if_fail (n_param_values == 19); 618s # 618s # if (G_CCLOSURE_SWAP_DATA (closure)) 618s # { 618s # data1 = closure->data; 618s # data2 = g_value_peek_pointer (param_values + 0); 618s # } 618s # else 618s # { 618s # data1 = g_value_peek_pointer (param_values + 0); 618s # data2 = closure->data; 618s # } 618s # 618s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 618s # (marshal_data ? marshal_data : cc->callback); 618s # 618s # callback (data1, 618s # g_marshal_value_peek_boolean (param_values + 1), 618s # g_marshal_value_peek_uchar (param_values + 2), 618s # g_marshal_value_peek_int (param_values + 3), 618s # g_marshal_value_peek_uint (param_values + 4), 618s # g_marshal_value_peek_int (param_values + 5), 618s # g_marshal_value_peek_uint (param_values + 6), 618s # g_marshal_value_peek_int64 (param_values + 7), 618s # g_marshal_value_peek_uint64 (param_values + 8), 618s # g_marshal_value_peek_double (param_values + 9), 618s # g_marshal_value_peek_string (param_values + 10), 618s # g_marshal_value_peek_string (param_values + 11), 618s # g_marshal_value_peek_string (param_values + 12), 618s # g_marshal_value_peek_variant (param_values + 13), 618s # g_marshal_value_peek_string (param_values + 14), 618s # g_marshal_value_peek_boxed (param_values + 15), 618s # g_marshal_value_peek_boxed (param_values + 16), 618s # g_marshal_value_peek_boxed (param_values + 17), 618s # g_marshal_value_peek_variant (param_values + 18), 618s # data2); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.SignalingIface 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectSignalingIface 618s # * @title: OrgProjectSignalingIface 618s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 618s # }; 618s # 618s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 618s # 618s # /* ---- Introspection data for org.project.SignalingIface ---- */ 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SimpleSignal", 618s # NULL, 618s # NULL 618s # }, 618s # "simple-signal" 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_b", 618s # (gchar *) "b", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_y", 618s # (gchar *) "y", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_n", 618s # (gchar *) "n", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_q", 618s # (gchar *) "q", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_i", 618s # (gchar *) "i", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_u", 618s # (gchar *) "u", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_x", 618s # (gchar *) "x", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_t", 618s # (gchar *) "t", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_d", 618s # (gchar *) "d", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_s", 618s # (gchar *) "s", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_o", 618s # (gchar *) "o", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_g", 618s # (gchar *) "g", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_h", 618s # (gchar *) "h", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_ay", 618s # (gchar *) "ay", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_as", 618s # (gchar *) "as", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_ao", 618s # (gchar *) "ao", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_aay", 618s # (gchar *) "aay", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 618s # { 618s # { 618s # -1, 618s # (gchar *) "an_asv", 618s # (gchar *) "a{sv}", 618s # NULL 618s # }, 618s # FALSE 618s # }; 618s # 618s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 618s # { 618s # { 618s # -1, 618s # (gchar *) "SignalWithManyArgs", 618s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 618s # NULL 618s # }, 618s # "signal-with-many-args" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 618s # { 618s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 618s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.SignalingIface", 618s # NULL, 618s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-signaling-iface", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_signaling_iface_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_simple_signal ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectSignalingIface: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceIface: 618s # * @parent_iface: The parent interface. 618s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 618s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.SignalingIface. 618s # */ 618s # 618s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 618s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * OrgProjectSignalingIface::simple-signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 618s # g_signal_new ("simple-signal", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_simple_signal, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /** 618s # * OrgProjectSignalingIface::signal-with-many-args: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_an_b: Argument. 618s # * @arg_an_y: Argument. 618s # * @arg_an_n: Argument. 618s # * @arg_an_q: Argument. 618s # * @arg_an_i: Argument. 618s # * @arg_an_u: Argument. 618s # * @arg_an_x: Argument. 618s # * @arg_an_t: Argument. 618s # * @arg_an_d: Argument. 618s # * @arg_an_s: Argument. 618s # * @arg_an_o: Argument. 618s # * @arg_an_g: Argument. 618s # * @arg_an_h: Argument. 618s # * @arg_an_ay: Argument. 618s # * @arg_an_as: Argument. 618s # * @arg_an_ao: Argument. 618s # * @arg_an_aay: Argument. 618s # * @arg_an_asv: Argument. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 618s # g_signal_new ("signal-with-many-args", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 618s # NULL, 618s # NULL, 618s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 618s # G_TYPE_NONE, 618s # 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); 618s # 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_simple_signal: 618s # * @object: A #OrgProjectSignalingIface. 618s # * 618s # * Emits the "SimpleSignal" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_emit_signal_with_many_args: 618s # * @object: A #OrgProjectSignalingIface. 618s # * @arg_an_b: Argument to pass with the signal. 618s # * @arg_an_y: Argument to pass with the signal. 618s # * @arg_an_n: Argument to pass with the signal. 618s # * @arg_an_q: Argument to pass with the signal. 618s # * @arg_an_i: Argument to pass with the signal. 618s # * @arg_an_u: Argument to pass with the signal. 618s # * @arg_an_x: Argument to pass with the signal. 618s # * @arg_an_t: Argument to pass with the signal. 618s # * @arg_an_d: Argument to pass with the signal. 618s # * @arg_an_s: Argument to pass with the signal. 618s # * @arg_an_o: Argument to pass with the signal. 618s # * @arg_an_g: Argument to pass with the signal. 618s # * @arg_an_h: Argument to pass with the signal. 618s # * @arg_an_ay: Argument to pass with the signal. 618s # * @arg_an_as: Argument to pass with the signal. 618s # * @arg_an_ao: Argument to pass with the signal. 618s # * @arg_an_aay: Argument to pass with the signal. 618s # * @arg_an_asv: Argument to pass with the signal. 618s # * 618s # * Emits the "SignalWithManyArgs" D-Bus signal. 618s # */ 618s # void 618s # org_project_signaling_iface_emit_signal_with_many_args ( 618s # OrgProjectSignalingIface *object, 618s # gboolean arg_an_b, 618s # guchar arg_an_y, 618s # gint16 arg_an_n, 618s # guint16 arg_an_q, 618s # gint arg_an_i, 618s # guint arg_an_u, 618s # gint64 arg_an_x, 618s # guint64 arg_an_t, 618s # gdouble arg_an_d, 618s # const gchar *arg_an_s, 618s # const gchar *arg_an_o, 618s # const gchar *arg_an_g, 618s # GVariant *arg_an_h, 618s # const gchar *arg_an_ay, 618s # const gchar *const *arg_an_as, 618s # const gchar *const *arg_an_ao, 618s # const gchar *const *arg_an_aay, 618s # GVariant *arg_an_asv) 618s # { 618s # 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); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxy: 618s # * 618s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceProxy. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 618s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 618s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_signaling_iface_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_SIGNALING_IFACE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeleton: 618s # * 618s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectSignalingIfaceSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 618s # */ 618s # 618s # struct _OrgProjectSignalingIfaceSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_signaling_iface_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_signaling_iface_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_signaling_iface_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 618s # { 618s # _org_project_signaling_iface_skeleton_handle_method_call, 618s # _org_project_signaling_iface_skeleton_handle_get_property, 618s # _org_project_signaling_iface_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_signaling_iface_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_simple_signal ( 618s # OrgProjectSignalingIface *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void 618s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 618s # OrgProjectSignalingIface *object, 618s # gboolean arg_an_b, 618s # guchar arg_an_y, 618s # gint16 arg_an_n, 618s # guint16 arg_an_q, 618s # gint arg_an_i, 618s # guint arg_an_u, 618s # gint64 arg_an_x, 618s # guint64 arg_an_t, 618s # gdouble arg_an_d, 618s # const gchar *arg_an_s, 618s # const gchar *arg_an_o, 618s # const gchar *arg_an_g, 618s # GVariant *arg_an_h, 618s # const gchar *arg_an_ay, 618s # const gchar *const *arg_an_as, 618s # const gchar *const *arg_an_ao, 618s # const gchar *const *arg_an_aay, 618s # GVariant *arg_an_asv) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 618s # arg_an_b, 618s # arg_an_y, 618s # arg_an_n, 618s # arg_an_q, 618s # arg_an_i, 618s # arg_an_u, 618s # arg_an_x, 618s # arg_an_t, 618s # arg_an_d, 618s # arg_an_s, 618s # arg_an_o, 618s # arg_an_g, 618s # arg_an_h, 618s # arg_an_ay, 618s # arg_an_as, 618s # arg_an_ao, 618s # arg_an_aay, 618s # arg_an_asv)); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_signaling_iface_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 618s # { 618s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 618s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 618s # } 618s # 618s # /** 618s # * org_project_signaling_iface_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 618s # * 618s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 618s # */ 618s # OrgProjectSignalingIface * 618s # org_project_signaling_iface_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 618s # } 618s # Error: 618s ok 25 __main__.TestCodegen.test_generate_valid_docbook 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmp145twpcx 618s # /tmp/tmp145twpcx/tmpr008m4nr.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp145twpcx/tmpr008m4nr.xml', '--generate-docbook', 'test'] 618s # Return code: 0 618s # Output: 618s # 618s # Error: 618s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpyssvk8_p 618s # /tmp/tmpyssvk8_p/tmpbsv2a0lj.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyssvk8_p/tmpbsv2a0lj.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 618s # Return code: 1 618s # Output: 618s # 618s # Error: 618s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 618s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpfump64n4 618s # /tmp/tmpfump64n4/tmpoh_66zic.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfump64n4/tmpoh_66zic.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpjbwbunr3 618s # /tmp/tmpjbwbunr3/tmpbz8sl0yc.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjbwbunr3/tmpbz8sl0yc.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 618s # Return code: 1 618s # Output: 618s # 618s # Error: 618s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 618s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpzxu2ehjl 618s # /tmp/tmpzxu2ehjl/tmpggrxx91c.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzxu2ehjl/tmpggrxx91c.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmp9xglhi98 618s # /tmp/tmp9xglhi98/tmpkp03rcbt.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9xglhi98/tmpkp03rcbt.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpswv0e510 618s # /tmp/tmpswv0e510/tmp404zl84j.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpswv0e510/tmp404zl84j.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 618s # Return code: 1 618s # Output: 618s # 618s # Error: 618s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 618s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmp3z9nrin8 618s # /tmp/tmp3z9nrin8/tmp25kt0x4m.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3z9nrin8/tmp25kt0x4m.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpff6_c7be 618s # /tmp/tmpff6_c7be/tmp5893_a__.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpff6_c7be/tmp5893_a__.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 618s # Return code: 1 618s # Output: 618s # 618s # Error: 618s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 618s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpko4lpoe8 618s # /tmp/tmpko4lpoe8/tmp0knwnfmu.xml: 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpko4lpoe8/tmp0knwnfmu.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s ok 35 __main__.TestCodegen.test_help 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpvbtpfwxy 618s # Running: ['/usr/bin/gdbus-codegen', '--help'] 618s # Return code: 0 618s # Output: 618s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 618s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 618s # [--c-generate-autocleanup {none,objects,all}] 618s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 618s # [--generate-rst OUTFILES] [--pragma-once] 618s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 618s # [--glib-min-required VERSION] 618s # [--glib-max-allowed VERSION] 618s # [--symbol-decorator SYMBOL_DECORATOR] 618s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 618s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 618s # [--generate-c-code OUTFILES | --header | --body | 618s # --interface-info-header | --interface-info-body] 618s # [--output FILE | --output-directory OUTDIR] 618s # FILE [FILE ...] 618s # 618s # D-Bus code and documentation generator 618s # 618s # positional arguments: 618s # FILE D-Bus introspection XML file 618s # 618s # options: 618s # -h, --help show this help message and exit 618s # --interface-prefix PREFIX 618s # String to strip from D-Bus interface names for code 618s # and docs 618s # --c-namespace NAMESPACE 618s # The namespace to use for generated C code 618s # --c-generate-object-manager 618s # Generate a GDBusObjectManagerClient subclass when 618s # generating C code 618s # --c-generate-autocleanup {none,objects,all} 618s # Generate autocleanup support 618s # --generate-docbook OUTFILES 618s # Generate Docbook in OUTFILES-org.Project.IFace.xml 618s # --generate-md OUTFILES 618s # Generate Markdown in OUTFILES-org.Project.IFace.md 618s # --generate-rst OUTFILES 618s # Generate reStructuredText in OUTFILES- 618s # org.Project.IFace.rst 618s # --pragma-once Use "pragma once" as the inclusion guard 618s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 618s # Add annotation (may be used several times) 618s # --glib-min-required VERSION 618s # Minimum version of GLib to be supported by the 618s # outputted code (default: 2.30) 618s # --glib-max-allowed VERSION 618s # Maximum version of GLib to be used by the outputted 618s # code (default: current GLib version) 618s # --symbol-decorator SYMBOL_DECORATOR 618s # Macro used to decorate a symbol in the outputted 618s # header, possibly to export symbols 618s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 618s # Additional header required for decorator specified by 618s # --symbol-decorator 618s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 618s # Additional define required for decorator specified by 618s # --symbol-decorator 618s # --generate-c-code OUTFILES 618s # Generate C code in OUTFILES.[ch] 618s # --header Generate C headers 618s # --body Generate C code 618s # --interface-info-header 618s # Generate GDBusInterfaceInfo C header 618s # --interface-info-body 618s # Generate GDBusInterfaceInfo C code 618s # --output FILE Write output into the specified file 618s # --output-directory OUTDIR 618s # Location to output generated files 618s # Error: 618s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpy5ld8g38 618s # /tmp/tmpy5ld8g38/tmpdv432mhy.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy5ld8g38/tmpdv432mhy.xml', '--generate-rst', 'test'] 618s # Return code: 0 618s # Output: 618s # 618s # Error: 618s # 618s # /tmp/tmpy5ld8g38/tmpfj5ndbg4.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy5ld8g38/tmpfj5ndbg4.xml', '--generate-md', 'test'] 618s # Return code: 0 618s # Output: 618s # 618s # Error: 618s # 618s # /tmp/tmpy5ld8g38/tmp5x79karu.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy5ld8g38/tmp5x79karu.xml', '--generate-docbook', 'test'] 618s # Return code: 0 618s # Output: 618s # 618s # Error: 618s ok 37 __main__.TestCodegen.test_no_args 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpbevl96sr 618s # Running: ['/usr/bin/gdbus-codegen'] 618s # Return code: 2 618s # Output: 618s # 618s # Error: 618s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 618s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 618s # [--c-generate-autocleanup {none,objects,all}] 618s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 618s # [--generate-rst OUTFILES] [--pragma-once] 618s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 618s # [--glib-min-required VERSION] 618s # [--glib-max-allowed VERSION] 618s # [--symbol-decorator SYMBOL_DECORATOR] 618s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 618s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 618s # [--generate-c-code OUTFILES | --header | --body | 618s # --interface-info-header | --interface-info-body] 618s # [--output FILE | --output-directory OUTDIR] 618s # FILE [FILE ...] 618s # gdbus-codegen: error: the following arguments are required: FILE 618s ok 38 __main__.TestCodegen.test_reproducible 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmphiyo_otu 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphiyo_otu/tmpsnyp16an1.xml', '/tmp/tmphiyo_otu/tmpgdsms3yz2.xml', '--output', '-', '--header'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for org.project.Bar.Frobnicator */ 618s # 618s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 618s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 618s # 618s # struct _OrgProjectBarFrobnicator; 618s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 618s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 618s # 618s # struct _OrgProjectBarFrobnicatorIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # gboolean (*handle_random_method) ( 618s # OrgProjectBarFrobnicator *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # }; 618s # 618s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 618s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void org_project_bar_frobnicator_complete_random_method ( 618s # OrgProjectBarFrobnicator *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void org_project_bar_frobnicator_call_random_method ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 618s # 618s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 618s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 618s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 618s # 618s # struct _OrgProjectBarFrobnicatorProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # OrgProjectBarFrobnicatorProxyPrivate *priv; 618s # }; 618s # 618s # struct _OrgProjectBarFrobnicatorProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 618s # #endif 618s # 618s # void org_project_bar_frobnicator_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void org_project_bar_frobnicator_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 618s # 618s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 618s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 618s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 618s # 618s # struct _OrgProjectBarFrobnicatorSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _OrgProjectBarFrobnicatorSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 618s # #endif 618s # 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for com.acme.Coyote */ 618s # 618s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 618s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 618s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 618s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 618s # 618s # struct _ComAcmeCoyote; 618s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 618s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 618s # 618s # struct _ComAcmeCoyoteIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # 618s # 618s # gboolean (*handle_attack) ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # gboolean (*handle_run) ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # gboolean (*handle_sleep) ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # const gchar * (*get_mood) (ComAcmeCoyote *object); 618s # 618s # void (*surprised) ( 618s # ComAcmeCoyote *object); 618s # 618s # }; 618s # 618s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 618s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void com_acme_coyote_complete_run ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # void com_acme_coyote_complete_sleep ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # void com_acme_coyote_complete_attack ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # 618s # 618s # /* D-Bus signal emissions functions: */ 618s # void com_acme_coyote_emit_surprised ( 618s # ComAcmeCoyote *object); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void com_acme_coyote_call_run ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean com_acme_coyote_call_run_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean com_acme_coyote_call_run_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void com_acme_coyote_call_sleep ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean com_acme_coyote_call_sleep_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean com_acme_coyote_call_sleep_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void com_acme_coyote_call_attack ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean com_acme_coyote_call_attack_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean com_acme_coyote_call_attack_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* D-Bus property accessors: */ 618s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 618s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 618s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 618s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 618s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 618s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 618s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 618s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 618s # 618s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 618s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 618s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 618s # 618s # struct _ComAcmeCoyoteProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # ComAcmeCoyoteProxyPrivate *priv; 618s # }; 618s # 618s # struct _ComAcmeCoyoteProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 618s # #endif 618s # 618s # void com_acme_coyote_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void com_acme_coyote_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 618s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 618s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 618s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 618s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 618s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 618s # 618s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 618s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 618s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 618s # 618s # struct _ComAcmeCoyoteSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # ComAcmeCoyoteSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _ComAcmeCoyoteSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 618s # #endif 618s # 618s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphiyo_otu/tmpgdsms3yz2.xml', '/tmp/tmphiyo_otu/tmpsnyp16an1.xml', '--output', '-', '--header'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for org.project.Bar.Frobnicator */ 618s # 618s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 618s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 618s # 618s # struct _OrgProjectBarFrobnicator; 618s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 618s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 618s # 618s # struct _OrgProjectBarFrobnicatorIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # gboolean (*handle_random_method) ( 618s # OrgProjectBarFrobnicator *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # }; 618s # 618s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 618s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void org_project_bar_frobnicator_complete_random_method ( 618s # OrgProjectBarFrobnicator *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void org_project_bar_frobnicator_call_random_method ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 618s # 618s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 618s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 618s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 618s # 618s # struct _OrgProjectBarFrobnicatorProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # OrgProjectBarFrobnicatorProxyPrivate *priv; 618s # }; 618s # 618s # struct _OrgProjectBarFrobnicatorProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 618s # #endif 618s # 618s # void org_project_bar_frobnicator_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void org_project_bar_frobnicator_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 618s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 618s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 618s # 618s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 618s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 618s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 618s # 618s # struct _OrgProjectBarFrobnicatorSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _OrgProjectBarFrobnicatorSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 618s # #endif 618s # 618s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for com.acme.Coyote */ 618s # 618s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 618s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 618s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 618s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 618s # 618s # struct _ComAcmeCoyote; 618s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 618s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 618s # 618s # struct _ComAcmeCoyoteIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # 618s # 618s # gboolean (*handle_attack) ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # gboolean (*handle_run) ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # gboolean (*handle_sleep) ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # const gchar * (*get_mood) (ComAcmeCoyote *object); 618s # 618s # void (*surprised) ( 618s # ComAcmeCoyote *object); 618s # 618s # }; 618s # 618s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 618s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void com_acme_coyote_complete_run ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # void com_acme_coyote_complete_sleep ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # void com_acme_coyote_complete_attack ( 618s # ComAcmeCoyote *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # 618s # 618s # /* D-Bus signal emissions functions: */ 618s # void com_acme_coyote_emit_surprised ( 618s # ComAcmeCoyote *object); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void com_acme_coyote_call_run ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean com_acme_coyote_call_run_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean com_acme_coyote_call_run_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void com_acme_coyote_call_sleep ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean com_acme_coyote_call_sleep_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean com_acme_coyote_call_sleep_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void com_acme_coyote_call_attack ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean com_acme_coyote_call_attack_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean com_acme_coyote_call_attack_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* D-Bus property accessors: */ 618s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 618s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 618s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 618s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 618s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 618s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 618s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 618s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 618s # 618s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 618s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 618s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 618s # 618s # struct _ComAcmeCoyoteProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # ComAcmeCoyoteProxyPrivate *priv; 618s # }; 618s # 618s # struct _ComAcmeCoyoteProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 618s # #endif 618s # 618s # void com_acme_coyote_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void com_acme_coyote_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 618s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 618s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 618s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 618s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 618s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 618s # 618s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 618s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 618s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 618s # 618s # struct _ComAcmeCoyoteSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # ComAcmeCoyoteSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _ComAcmeCoyoteSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 618s # #endif 618s # 618s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphiyo_otu/tmpsnyp16an1.xml', '/tmp/tmphiyo_otu/tmpgdsms3yz2.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # static void 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint G_GNUC_UNUSED, 618s # void *marshal_data) 618s # { 618s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 618s # (void *data1, 618s # GDBusMethodInvocation *arg_method_invocation, 618s # void *data2); 618s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 618s # GCClosure *cc = (GCClosure*) closure; 618s # void *data1, *data2; 618s # gboolean v_return; 618s # 618s # g_return_if_fail (return_value != NULL); 618s # g_return_if_fail (n_param_values == 2); 618s # 618s # if (G_CCLOSURE_SWAP_DATA (closure)) 618s # { 618s # data1 = closure->data; 618s # data2 = g_value_peek_pointer (param_values + 0); 618s # } 618s # else 618s # { 618s # data1 = g_value_peek_pointer (param_values + 0); 618s # data2 = closure->data; 618s # } 618s # 618s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 618s # (marshal_data ? marshal_data : cc->callback); 618s # 618s # v_return = 618s # callback (data1, 618s # g_marshal_value_peek_object (param_values + 1), 618s # data2); 618s # 618s # g_value_set_boolean (return_value, v_return); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.Bar.Frobnicator 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectBarFrobnicator 618s # * @title: OrgProjectBarFrobnicator 618s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 618s # */ 618s # 618s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 618s # 618s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 618s # { 618s # { 618s # -1, 618s # (gchar *) "RandomMethod", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-random-method", 618s # FALSE 618s # }; 618s # 618s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 618s # { 618s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.Bar.Frobnicator", 618s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-bar-frobnicator", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_bar_frobnicator_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_bar_frobnicator_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_bar_frobnicator_method_marshal_random_method ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectBarFrobnicator: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 618s # */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorIface: 618s # * @parent_iface: The parent interface. 618s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 618s # */ 618s # 618s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 618s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 618s # { 618s # /* GObject signals for incoming D-Bus method calls: */ 618s # /** 618s # * OrgProjectBarFrobnicator::handle-random-method: 618s # * @object: A #OrgProjectBarFrobnicator. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-random-method", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # org_project_bar_frobnicator_method_marshal_random_method, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_call_random_method: 618s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 618s # * 618s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # org_project_bar_frobnicator_call_random_method ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "RandomMethod", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_call_random_method_finish: 618s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # org_project_bar_frobnicator_call_random_method_finish ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_call_random_method_sync: 618s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # org_project_bar_frobnicator_call_random_method_sync ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "RandomMethod", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_complete_random_method: 618s # * @object: A #OrgProjectBarFrobnicator. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # org_project_bar_frobnicator_complete_random_method ( 618s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorProxy: 618s # * 618s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectBarFrobnicatorProxy. 618s # */ 618s # 618s # struct _OrgProjectBarFrobnicatorProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 618s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 618s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_bar_frobnicator_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_bar_frobnicator_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorSkeleton: 618s # * 618s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 618s # */ 618s # 618s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 618s # { 618s # _org_project_bar_frobnicator_skeleton_handle_method_call, 618s # _org_project_bar_frobnicator_skeleton_handle_get_property, 618s # _org_project_bar_frobnicator_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_bar_frobnicator_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface com.acme.Coyote 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:ComAcmeCoyote 618s # * @title: ComAcmeCoyote 618s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 618s # * 618s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _COM_ACME_COYOTE_SURPRISED, 618s # }; 618s # 618s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 618s # 618s # /* ---- Introspection data for com.acme.Coyote ---- */ 618s # 618s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Run", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-run", 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Sleep", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-sleep", 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Attack", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-attack", 618s # FALSE 618s # }; 618s # 618s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 618s # { 618s # &_com_acme_coyote_method_info_run.parent_struct, 618s # &_com_acme_coyote_method_info_sleep.parent_struct, 618s # &_com_acme_coyote_method_info_attack.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Surprised", 618s # NULL, 618s # NULL 618s # }, 618s # "surprised" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 618s # { 618s # &_com_acme_coyote_signal_info_surprised.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Mood", 618s # (gchar *) "s", 618s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 618s # NULL 618s # }, 618s # "mood", 618s # FALSE, 618s # TRUE 618s # }; 618s # 618s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 618s # { 618s # &_com_acme_coyote_property_info_mood.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "com.acme.Coyote", 618s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 618s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 618s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 618s # NULL 618s # }, 618s # "com-acme-coyote", 618s # }; 618s # 618s # 618s # /** 618s # * com_acme_coyote_interface_info: 618s # * 618s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # com_acme_coyote_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 618s # { 618s # g_object_class_override_property (klass, property_id_begin++, "mood"); 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # com_acme_coyote_signal_marshal_surprised ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # com_acme_coyote_method_marshal_run ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # com_acme_coyote_method_marshal_sleep ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # com_acme_coyote_method_marshal_attack ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * ComAcmeCoyote: 618s # * 618s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 618s # */ 618s # 618s # /** 618s # * ComAcmeCoyoteIface: 618s # * @parent_iface: The parent interface. 618s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 618s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 618s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 618s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 618s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 618s # * 618s # * Virtual table for the D-Bus interface com.acme.Coyote. 618s # */ 618s # 618s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 618s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 618s # 618s # static void 618s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 618s # { 618s # /* GObject signals for incoming D-Bus method calls: */ 618s # /** 618s # * ComAcmeCoyote::handle-run: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-run", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # com_acme_coyote_method_marshal_run, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # /** 618s # * ComAcmeCoyote::handle-sleep: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-sleep", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # com_acme_coyote_method_marshal_sleep, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # /** 618s # * ComAcmeCoyote::handle-attack: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-attack", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # com_acme_coyote_method_marshal_attack, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * ComAcmeCoyote::surprised: 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 618s # g_signal_new ("surprised", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 618s # NULL, 618s # NULL, 618s # com_acme_coyote_signal_marshal_surprised, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /* GObject properties for D-Bus properties: */ 618s # /** 618s # * ComAcmeCoyote:mood: 618s # * 618s # * Represents the D-Bus property "Mood". 618s # * 618s # * 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. 618s # */ 618s # g_object_interface_install_property (iface, 618s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_get_mood: (skip) 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * Gets the value of the "Mood" D-Bus property. 618s # * 618s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # const gchar * 618s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 618s # { 618s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 618s # 618s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_dup_mood: (skip) 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * Gets a copy of the "Mood" D-Bus property. 618s # * 618s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 618s # * 618s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 618s # */ 618s # gchar * 618s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 618s # { 618s # gchar *value; 618s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 618s # return value; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_set_mood: (skip) 618s # * @object: A #ComAcmeCoyote. 618s # * @value: The value to set. 618s # * 618s # * Sets the "Mood" D-Bus property to @value. 618s # * 618s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 618s # */ 618s # void 618s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 618s # { 618s # g_object_set (G_OBJECT (object), "mood", value, NULL); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_emit_surprised: 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * Emits the "Surprised" D-Bus signal. 618s # */ 618s # void 618s # com_acme_coyote_emit_surprised ( 618s # ComAcmeCoyote *object) 618s # { 618s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_run: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the Run() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # com_acme_coyote_call_run ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "Run", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_run_finish: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with com_acme_coyote_call_run(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_run_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_run_sync: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_run_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "Run", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_sleep: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # com_acme_coyote_call_sleep ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "Sleep", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_sleep_finish: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with com_acme_coyote_call_sleep(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_sleep_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_sleep_sync: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_sleep_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "Sleep", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_attack: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # com_acme_coyote_call_attack ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "Attack", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_attack_finish: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with com_acme_coyote_call_attack(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_attack_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_attack_sync: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_attack_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "Attack", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_complete_run: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # com_acme_coyote_complete_run ( 618s # ComAcmeCoyote *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_complete_sleep: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # com_acme_coyote_complete_sleep ( 618s # ComAcmeCoyote *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_complete_attack: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # com_acme_coyote_complete_attack ( 618s # ComAcmeCoyote *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * ComAcmeCoyoteProxy: 618s # * 618s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * ComAcmeCoyoteProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #ComAcmeCoyoteProxy. 618s # */ 618s # 618s # struct _ComAcmeCoyoteProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # com_acme_coyote_proxy_finalize (GObject *object) 618s # { 618s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_get_property (GObject *object, 618s # guint prop_id, 618s # GValue *value, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # GVariant *variant; 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 618s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 618s # if (info->use_gvariant) 618s # { 618s # g_value_set_variant (value, variant); 618s # } 618s # else 618s # { 618s # if (variant != NULL) 618s # g_dbus_gvariant_to_gvalue (variant, value); 618s # } 618s # if (variant != NULL) 618s # g_variant_unref (variant); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 618s # GAsyncResult *res, 618s # gpointer user_data) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info = user_data; 618s # GError *error; 618s # GVariant *_ret; 618s # error = NULL; 618s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 618s # if (!_ret) 618s # { 618s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 618s # info->parent_struct.name, 618s # error->message, g_quark_to_string (error->domain), error->code); 618s # g_error_free (error); 618s # } 618s # else 618s # { 618s # g_variant_unref (_ret); 618s # } 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_set_property (GObject *object, 618s # guint prop_id, 618s # const GValue *value, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # GVariant *variant; 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 618s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_dbus_proxy_call (G_DBUS_PROXY (object), 618s # "org.freedesktop.DBus.Properties.Set", 618s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 618s # g_variant_unref (variant); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static const gchar * 618s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 618s # { 618s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 618s # GVariant *variant; 618s # const gchar *value = NULL; 618s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 618s # if (variant != NULL) 618s # { 618s # value = g_variant_get_string (variant, NULL); 618s # g_variant_unref (variant); 618s # } 618s # return value; 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 618s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 618s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 618s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 618s # 618s # com_acme_coyote_override_properties (gobject_class, 1); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 618s # { 618s # iface->get_mood = com_acme_coyote_proxy_get_mood; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # com_acme_coyote_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with com_acme_coyote_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # com_acme_coyote_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * ComAcmeCoyoteSkeleton: 618s # * 618s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * ComAcmeCoyoteSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #ComAcmeCoyoteSkeleton. 618s # */ 618s # 618s # struct _ComAcmeCoyoteSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _com_acme_coyote_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _com_acme_coyote_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _com_acme_coyote_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 618s # { 618s # _com_acme_coyote_skeleton_handle_method_call, 618s # _com_acme_coyote_skeleton_handle_get_property, 618s # _com_acme_coyote_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return com_acme_coyote_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 618s # 618s # static void 618s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 618s # gboolean emit_changed = FALSE; 618s # 618s # g_mutex_lock (&skeleton->priv->lock); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # { 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # skeleton->priv->changed_properties_idle_source = NULL; 618s # emit_changed = TRUE; 618s # } 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # 618s # if (emit_changed) 618s # _com_acme_coyote_emit_changed (skeleton); 618s # } 618s # 618s # static void 618s # _com_acme_coyote_on_signal_surprised ( 618s # ComAcmeCoyote *object) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # com_acme_coyote_skeleton_finalize (GObject *object) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # guint n; 618s # for (n = 0; n < 1; n++) 618s # g_value_unset (&skeleton->priv->properties[n]); 618s # g_free (skeleton->priv->properties); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_get_property (GObject *object, 618s # guint prop_id, 618s # GValue *value, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # g_mutex_lock (&skeleton->priv->lock); 618s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # } 618s # 618s # static gboolean 618s # _com_acme_coyote_emit_changed (gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # GList *l; 618s # GVariantBuilder builder; 618s # GVariantBuilder invalidated_builder; 618s # guint num_changes; 618s # 618s # g_mutex_lock (&skeleton->priv->lock); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 618s # #else 618s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 618s # #endif 618s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 618s # { 618s # ChangedProperty *cp = l->data; 618s # GVariant *variant; 618s # const GValue *cur_value; 618s # 618s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 618s # if (!_g_value_equal (cur_value, &cp->orig_value)) 618s # { 618s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 618s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 618s # g_variant_unref (variant); 618s # num_changes++; 618s # } 618s # } 618s # if (num_changes > 0) 618s # { 618s # GList *connections, *ll; 618s # GVariant *signal_variant; 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 618s # &builder, &invalidated_builder)); 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # for (ll = connections; ll != NULL; ll = ll->next) 618s # { 618s # GDBusConnection *connection = ll->data; 618s # 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 618s # "org.freedesktop.DBus.Properties", 618s # "PropertiesChanged", 618s # signal_variant, 618s # NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # else 618s # { 618s # g_variant_builder_clear (&builder); 618s # g_variant_builder_clear (&invalidated_builder); 618s # } 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # skeleton->priv->changed_properties = NULL; 618s # skeleton->priv->changed_properties_idle_source = NULL; 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # return FALSE; 618s # } 618s # 618s # static void 618s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 618s # { 618s # ChangedProperty *cp; 618s # GList *l; 618s # cp = NULL; 618s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 618s # { 618s # ChangedProperty *i_cp = l->data; 618s # if (i_cp->info == info) 618s # { 618s # cp = i_cp; 618s # break; 618s # } 618s # } 618s # if (cp == NULL) 618s # { 618s # cp = g_new0 (ChangedProperty, 1); 618s # cp->prop_id = prop_id; 618s # cp->info = info; 618s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 618s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 618s # g_value_copy (orig_value, &cp->orig_value); 618s # } 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_notify (GObject *object, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # g_mutex_lock (&skeleton->priv->lock); 618s # if (skeleton->priv->changed_properties != NULL && 618s # skeleton->priv->changed_properties_idle_source == NULL) 618s # { 618s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 618s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 618s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 618s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 618s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 618s # g_source_unref (skeleton->priv->changed_properties_idle_source); 618s # } 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_set_property (GObject *object, 618s # guint prop_id, 618s # const GValue *value, 618s # GParamSpec *pspec) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 618s # g_mutex_lock (&skeleton->priv->lock); 618s # g_object_freeze_notify (object); 618s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 618s # { 618s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 618s # info->emits_changed_signal) 618s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 618s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 618s # g_object_notify_by_pspec (object, pspec); 618s # } 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # g_object_thaw_notify (object); 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # skeleton->priv->properties = g_new0 (GValue, 1); 618s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 618s # } 618s # 618s # static const gchar * 618s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # const gchar *value; 618s # g_mutex_lock (&skeleton->priv->lock); 618s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # return value; 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 618s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 618s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 618s # gobject_class->notify = com_acme_coyote_skeleton_notify; 618s # 618s # 618s # com_acme_coyote_override_properties (gobject_class, 1); 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 618s # { 618s # iface->surprised = _com_acme_coyote_on_signal_surprised; 618s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_skeleton_new (void) 618s # { 618s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 618s # } 618s # Error: 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphiyo_otu/tmpgdsms3yz2.xml', '/tmp/tmphiyo_otu/tmpsnyp16an1.xml', '--output', '-', '--body'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifdef HAVE_CONFIG_H 618s # # include "config.h" 618s # #endif 618s # 618s # #include 618s # #ifdef G_OS_UNIX 618s # # include 618s # #endif 618s # 618s # #ifdef G_ENABLE_DEBUG 618s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 618s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 618s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 618s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 618s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 618s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 618s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 618s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 618s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 618s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 618s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 618s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 618s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 618s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 618s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 618s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 618s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 618s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 618s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 618s # #else /* !G_ENABLE_DEBUG */ 618s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 618s # * Do not access GValues directly in your code. Instead, use the 618s # * g_value_get_*() functions 618s # */ 618s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 618s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 618s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 618s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 618s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 618s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 618s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 618s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 618s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 618s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 618s # #endif /* !G_ENABLE_DEBUG */ 618s # 618s # typedef struct 618s # { 618s # GDBusArgInfo parent_struct; 618s # gboolean use_gvariant; 618s # } _ExtendedGDBusArgInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusMethodInfo parent_struct; 618s # const gchar *signal_name; 618s # gboolean pass_fdlist; 618s # } _ExtendedGDBusMethodInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusSignalInfo parent_struct; 618s # const gchar *signal_name; 618s # } _ExtendedGDBusSignalInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusPropertyInfo parent_struct; 618s # const gchar *hyphen_name; 618s # guint use_gvariant : 1; 618s # guint emits_changed_signal : 1; 618s # } _ExtendedGDBusPropertyInfo; 618s # 618s # typedef struct 618s # { 618s # GDBusInterfaceInfo parent_struct; 618s # const gchar *hyphen_name; 618s # } _ExtendedGDBusInterfaceInfo; 618s # 618s # typedef struct 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # guint prop_id; 618s # GValue orig_value; /* the value before the change */ 618s # } ChangedProperty; 618s # 618s # static void 618s # _changed_property_free (ChangedProperty *data) 618s # { 618s # g_value_unset (&data->orig_value); 618s # g_free (data); 618s # } 618s # 618s # static gboolean 618s # _g_strv_equal0 (gchar **a, gchar **b) 618s # { 618s # gboolean ret = FALSE; 618s # guint n; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # if (g_strv_length (a) != g_strv_length (b)) 618s # goto out; 618s # for (n = 0; a[n] != NULL; n++) 618s # if (g_strcmp0 (a[n], b[n]) != 0) 618s # goto out; 618s # ret = TRUE; 618s # out: 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _g_variant_equal0 (GVariant *a, GVariant *b) 618s # { 618s # gboolean ret = FALSE; 618s # if (a == NULL && b == NULL) 618s # { 618s # ret = TRUE; 618s # goto out; 618s # } 618s # if (a == NULL || b == NULL) 618s # goto out; 618s # ret = g_variant_equal (a, b); 618s # out: 618s # return ret; 618s # } 618s # 618s # G_GNUC_UNUSED static gboolean 618s # _g_value_equal (const GValue *a, const GValue *b) 618s # { 618s # gboolean ret = FALSE; 618s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 618s # switch (G_VALUE_TYPE (a)) 618s # { 618s # case G_TYPE_BOOLEAN: 618s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 618s # break; 618s # case G_TYPE_UCHAR: 618s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 618s # break; 618s # case G_TYPE_INT: 618s # ret = (g_value_get_int (a) == g_value_get_int (b)); 618s # break; 618s # case G_TYPE_UINT: 618s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 618s # break; 618s # case G_TYPE_INT64: 618s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 618s # break; 618s # case G_TYPE_UINT64: 618s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 618s # break; 618s # case G_TYPE_DOUBLE: 618s # { 618s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 618s # gdouble da = g_value_get_double (a); 618s # gdouble db = g_value_get_double (b); 618s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 618s # } 618s # break; 618s # case G_TYPE_STRING: 618s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 618s # break; 618s # case G_TYPE_VARIANT: 618s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 618s # break; 618s # default: 618s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 618s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 618s # else 618s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 618s # break; 618s # } 618s # return ret; 618s # } 618s # 618s # static void 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint G_GNUC_UNUSED, 618s # void *marshal_data) 618s # { 618s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 618s # (void *data1, 618s # GDBusMethodInvocation *arg_method_invocation, 618s # void *data2); 618s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 618s # GCClosure *cc = (GCClosure*) closure; 618s # void *data1, *data2; 618s # gboolean v_return; 618s # 618s # g_return_if_fail (return_value != NULL); 618s # g_return_if_fail (n_param_values == 2); 618s # 618s # if (G_CCLOSURE_SWAP_DATA (closure)) 618s # { 618s # data1 = closure->data; 618s # data2 = g_value_peek_pointer (param_values + 0); 618s # } 618s # else 618s # { 618s # data1 = g_value_peek_pointer (param_values + 0); 618s # data2 = closure->data; 618s # } 618s # 618s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 618s # (marshal_data ? marshal_data : cc->callback); 618s # 618s # v_return = 618s # callback (data1, 618s # g_marshal_value_peek_object (param_values + 1), 618s # data2); 618s # 618s # g_value_set_boolean (return_value, v_return); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface org.project.Bar.Frobnicator 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:OrgProjectBarFrobnicator 618s # * @title: OrgProjectBarFrobnicator 618s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 618s # * 618s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 618s # */ 618s # 618s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 618s # 618s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 618s # { 618s # { 618s # -1, 618s # (gchar *) "RandomMethod", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-random-method", 618s # FALSE 618s # }; 618s # 618s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 618s # { 618s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "org.project.Bar.Frobnicator", 618s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "org-project-bar-frobnicator", 618s # }; 618s # 618s # 618s # /** 618s # * org_project_bar_frobnicator_interface_info: 618s # * 618s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # org_project_bar_frobnicator_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 618s # { 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # org_project_bar_frobnicator_method_marshal_random_method ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * OrgProjectBarFrobnicator: 618s # * 618s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 618s # */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorIface: 618s # * @parent_iface: The parent interface. 618s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 618s # * 618s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 618s # */ 618s # 618s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 618s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 618s # 618s # static void 618s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 618s # { 618s # /* GObject signals for incoming D-Bus method calls: */ 618s # /** 618s # * OrgProjectBarFrobnicator::handle-random-method: 618s # * @object: A #OrgProjectBarFrobnicator. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-random-method", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # org_project_bar_frobnicator_method_marshal_random_method, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_call_random_method: 618s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 618s # * 618s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # org_project_bar_frobnicator_call_random_method ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "RandomMethod", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_call_random_method_finish: 618s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # org_project_bar_frobnicator_call_random_method_finish ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_call_random_method_sync: 618s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # org_project_bar_frobnicator_call_random_method_sync ( 618s # OrgProjectBarFrobnicator *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "RandomMethod", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_complete_random_method: 618s # * @object: A #OrgProjectBarFrobnicator. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # org_project_bar_frobnicator_complete_random_method ( 618s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorProxy: 618s # * 618s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectBarFrobnicatorProxy. 618s # */ 618s # 618s # struct _OrgProjectBarFrobnicatorProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 618s # { 618s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 618s # guint prop_id G_GNUC_UNUSED, 618s # const GValue *value G_GNUC_UNUSED, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 618s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 618s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 618s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_bar_frobnicator_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # org_project_bar_frobnicator_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorSkeleton: 618s # * 618s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * OrgProjectBarFrobnicatorSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 618s # */ 618s # 618s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 618s # { 618s # _org_project_bar_frobnicator_skeleton_handle_method_call, 618s # _org_project_bar_frobnicator_skeleton_handle_get_property, 618s # _org_project_bar_frobnicator_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return org_project_bar_frobnicator_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 618s # { 618s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 618s # { 618s # } 618s # 618s # /** 618s # * org_project_bar_frobnicator_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 618s # * 618s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 618s # */ 618s # OrgProjectBarFrobnicator * 618s # org_project_bar_frobnicator_skeleton_new (void) 618s # { 618s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ 618s # * Code for interface com.acme.Coyote 618s # * ------------------------------------------------------------------------ 618s # */ 618s # 618s # /** 618s # * SECTION:ComAcmeCoyote 618s # * @title: ComAcmeCoyote 618s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 618s # * 618s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 618s # */ 618s # 618s # enum 618s # { 618s # _COM_ACME_COYOTE_SURPRISED, 618s # }; 618s # 618s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 618s # 618s # /* ---- Introspection data for com.acme.Coyote ---- */ 618s # 618s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Run", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-run", 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Sleep", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-sleep", 618s # FALSE 618s # }; 618s # 618s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Attack", 618s # NULL, 618s # NULL, 618s # NULL 618s # }, 618s # "handle-attack", 618s # FALSE 618s # }; 618s # 618s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 618s # { 618s # &_com_acme_coyote_method_info_run.parent_struct, 618s # &_com_acme_coyote_method_info_sleep.parent_struct, 618s # &_com_acme_coyote_method_info_attack.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Surprised", 618s # NULL, 618s # NULL 618s # }, 618s # "surprised" 618s # }; 618s # 618s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 618s # { 618s # &_com_acme_coyote_signal_info_surprised.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 618s # { 618s # { 618s # -1, 618s # (gchar *) "Mood", 618s # (gchar *) "s", 618s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 618s # NULL 618s # }, 618s # "mood", 618s # FALSE, 618s # TRUE 618s # }; 618s # 618s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 618s # { 618s # &_com_acme_coyote_property_info_mood.parent_struct, 618s # NULL 618s # }; 618s # 618s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 618s # { 618s # { 618s # -1, 618s # (gchar *) "com.acme.Coyote", 618s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 618s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 618s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 618s # NULL 618s # }, 618s # "com-acme-coyote", 618s # }; 618s # 618s # 618s # /** 618s # * com_acme_coyote_interface_info: 618s # * 618s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 618s # * 618s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 618s # */ 618s # GDBusInterfaceInfo * 618s # com_acme_coyote_interface_info (void) 618s # { 618s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_override_properties: 618s # * @klass: The class structure for a #GObject derived class. 618s # * @property_id_begin: The property id to assign to the first overridden property. 618s # * 618s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 618s # * The properties are overridden in the order they are defined. 618s # * 618s # * Returns: The last property id. 618s # */ 618s # guint 618s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 618s # { 618s # g_object_class_override_property (klass, property_id_begin++, "mood"); 618s # return property_id_begin - 1; 618s # } 618s # 618s # 618s # inline static void 618s # com_acme_coyote_signal_marshal_surprised ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # g_cclosure_marshal_VOID__VOID (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # com_acme_coyote_method_marshal_run ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # com_acme_coyote_method_marshal_sleep ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # inline static void 618s # com_acme_coyote_method_marshal_attack ( 618s # GClosure *closure, 618s # GValue *return_value, 618s # unsigned int n_param_values, 618s # const GValue *param_values, 618s # void *invocation_hint, 618s # void *marshal_data) 618s # { 618s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 618s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 618s # } 618s # 618s # 618s # /** 618s # * ComAcmeCoyote: 618s # * 618s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 618s # */ 618s # 618s # /** 618s # * ComAcmeCoyoteIface: 618s # * @parent_iface: The parent interface. 618s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 618s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 618s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 618s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 618s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 618s # * 618s # * Virtual table for the D-Bus interface com.acme.Coyote. 618s # */ 618s # 618s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 618s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 618s # 618s # static void 618s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 618s # { 618s # /* GObject signals for incoming D-Bus method calls: */ 618s # /** 618s # * ComAcmeCoyote::handle-run: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-run", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # com_acme_coyote_method_marshal_run, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # /** 618s # * ComAcmeCoyote::handle-sleep: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-sleep", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # com_acme_coyote_method_marshal_sleep, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # /** 618s # * ComAcmeCoyote::handle-attack: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: A #GDBusMethodInvocation. 618s # * 618s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # g_signal_new ("handle-attack", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 618s # g_signal_accumulator_true_handled, 618s # NULL, 618s # com_acme_coyote_method_marshal_attack, 618s # G_TYPE_BOOLEAN, 618s # 1, 618s # G_TYPE_DBUS_METHOD_INVOCATION); 618s # 618s # /* GObject signals for received D-Bus signals: */ 618s # /** 618s # * ComAcmeCoyote::surprised: 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 618s # * 618s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 618s # */ 618s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 618s # g_signal_new ("surprised", 618s # G_TYPE_FROM_INTERFACE (iface), 618s # G_SIGNAL_RUN_LAST, 618s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 618s # NULL, 618s # NULL, 618s # com_acme_coyote_signal_marshal_surprised, 618s # G_TYPE_NONE, 618s # 0); 618s # 618s # /* GObject properties for D-Bus properties: */ 618s # /** 618s # * ComAcmeCoyote:mood: 618s # * 618s # * Represents the D-Bus property "Mood". 618s # * 618s # * 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. 618s # */ 618s # g_object_interface_install_property (iface, 618s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_get_mood: (skip) 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * Gets the value of the "Mood" D-Bus property. 618s # * 618s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 618s # * 618s # * 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. 618s # * 618s # * 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. 618s # */ 618s # const gchar * 618s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 618s # { 618s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 618s # 618s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_dup_mood: (skip) 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * Gets a copy of the "Mood" D-Bus property. 618s # * 618s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 618s # * 618s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 618s # */ 618s # gchar * 618s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 618s # { 618s # gchar *value; 618s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 618s # return value; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_set_mood: (skip) 618s # * @object: A #ComAcmeCoyote. 618s # * @value: The value to set. 618s # * 618s # * Sets the "Mood" D-Bus property to @value. 618s # * 618s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 618s # */ 618s # void 618s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 618s # { 618s # g_object_set (G_OBJECT (object), "mood", value, NULL); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_emit_surprised: 618s # * @object: A #ComAcmeCoyote. 618s # * 618s # * Emits the "Surprised" D-Bus signal. 618s # */ 618s # void 618s # com_acme_coyote_emit_surprised ( 618s # ComAcmeCoyote *object) 618s # { 618s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_run: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the Run() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # com_acme_coyote_call_run ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "Run", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_run_finish: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with com_acme_coyote_call_run(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_run_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_run_sync: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_run_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "Run", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_sleep: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # com_acme_coyote_call_sleep ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "Sleep", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_sleep_finish: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with com_acme_coyote_call_sleep(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_sleep_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_sleep_sync: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_sleep_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "Sleep", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_attack: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 618s # */ 618s # void 618s # com_acme_coyote_call_attack ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 618s # "Attack", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # callback, 618s # user_data); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_attack_finish: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Finishes an operation started with com_acme_coyote_call_attack(). 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_attack_finish ( 618s # ComAcmeCoyote *proxy, 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_call_attack_sync: 618s # * @proxy: A #ComAcmeCoyoteProxy. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL. 618s # * 618s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 618s # * 618s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 618s # */ 618s # gboolean 618s # com_acme_coyote_call_attack_sync ( 618s # ComAcmeCoyote *proxy, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GVariant *_ret; 618s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 618s # "Attack", 618s # g_variant_new ("()"), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # cancellable, 618s # error); 618s # if (_ret == NULL) 618s # goto _out; 618s # g_variant_get (_ret, 618s # "()"); 618s # g_variant_unref (_ret); 618s # _out: 618s # return _ret != NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_complete_run: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # com_acme_coyote_complete_run ( 618s # ComAcmeCoyote *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_complete_sleep: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # com_acme_coyote_complete_sleep ( 618s # ComAcmeCoyote *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_complete_attack: 618s # * @object: A #ComAcmeCoyote. 618s # * @invocation: (transfer full): A #GDBusMethodInvocation. 618s # * 618s # * 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. 618s # * 618s # * This method will free @invocation, you cannot use it afterwards. 618s # */ 618s # void 618s # com_acme_coyote_complete_attack ( 618s # ComAcmeCoyote *object G_GNUC_UNUSED, 618s # GDBusMethodInvocation *invocation) 618s # { 618s # g_dbus_method_invocation_return_value (invocation, 618s # g_variant_new ("()")); 618s # } 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * ComAcmeCoyoteProxy: 618s # * 618s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * ComAcmeCoyoteProxyClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #ComAcmeCoyoteProxy. 618s # */ 618s # 618s # struct _ComAcmeCoyoteProxyPrivate 618s # { 618s # GData *qdata; 618s # }; 618s # 618s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 618s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 618s # 618s # #endif 618s # static void 618s # com_acme_coyote_proxy_finalize (GObject *object) 618s # { 618s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 618s # g_datalist_clear (&proxy->priv->qdata); 618s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_get_property (GObject *object, 618s # guint prop_id, 618s # GValue *value, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # GVariant *variant; 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 618s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 618s # if (info->use_gvariant) 618s # { 618s # g_value_set_variant (value, variant); 618s # } 618s # else 618s # { 618s # if (variant != NULL) 618s # g_dbus_gvariant_to_gvalue (variant, value); 618s # } 618s # if (variant != NULL) 618s # g_variant_unref (variant); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 618s # GAsyncResult *res, 618s # gpointer user_data) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info = user_data; 618s # GError *error; 618s # GVariant *_ret; 618s # error = NULL; 618s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 618s # if (!_ret) 618s # { 618s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 618s # info->parent_struct.name, 618s # error->message, g_quark_to_string (error->domain), error->code); 618s # g_error_free (error); 618s # } 618s # else 618s # { 618s # g_variant_unref (_ret); 618s # } 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_set_property (GObject *object, 618s # guint prop_id, 618s # const GValue *value, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # GVariant *variant; 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 618s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_dbus_proxy_call (G_DBUS_PROXY (object), 618s # "org.freedesktop.DBus.Properties.Set", 618s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 618s # G_DBUS_CALL_FLAGS_NONE, 618s # -1, 618s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 618s # g_variant_unref (variant); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 618s # const gchar *sender_name G_GNUC_UNUSED, 618s # const gchar *signal_name, 618s # GVariant *parameters) 618s # { 618s # _ExtendedGDBusSignalInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # gsize n; 618s # guint signal_id; 618s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 618s # if (info == NULL) 618s # return; 618s # num_params = g_variant_n_children (parameters); 618s # paramv = g_new0 (GValue, num_params + 1); 618s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 618s # g_value_set_object (¶mv[0], proxy); 618s # g_variant_iter_init (&iter, parameters); 618s # n = 1; 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 618s # g_signal_emitv (paramv, signal_id, 0, NULL); 618s # for (n = 0; n < num_params + 1; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 618s # GVariant *changed_properties, 618s # const gchar *const *invalidated_properties) 618s # { 618s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 618s # guint n; 618s # const gchar *key; 618s # GVariantIter *iter; 618s # _ExtendedGDBusPropertyInfo *info; 618s # g_variant_get (changed_properties, "a{sv}", &iter); 618s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 618s # g_datalist_remove_data (&proxy->priv->qdata, key); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # g_variant_iter_free (iter); 618s # for (n = 0; invalidated_properties[n] != NULL; n++) 618s # { 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 618s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 618s # if (info != NULL) 618s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 618s # } 618s # } 618s # 618s # static const gchar * 618s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 618s # { 618s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 618s # GVariant *variant; 618s # const gchar *value = NULL; 618s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 618s # if (variant != NULL) 618s # { 618s # value = g_variant_get_string (variant, NULL); 618s # g_variant_unref (variant); 618s # } 618s # return value; 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 618s # #else 618s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 618s # #endif 618s # 618s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusProxyClass *proxy_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 618s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 618s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 618s # 618s # proxy_class = G_DBUS_PROXY_CLASS (klass); 618s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 618s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 618s # 618s # com_acme_coyote_override_properties (gobject_class, 1); 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 618s # { 618s # iface->get_mood = com_acme_coyote_proxy_get_mood; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # com_acme_coyote_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with com_acme_coyote_proxy_new(). 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_sync: 618s # * @connection: A #GDBusConnection. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_for_bus: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 618s # * @user_data: User data to pass to @callback. 618s # * 618s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 618s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 618s # * 618s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 618s # */ 618s # void 618s # com_acme_coyote_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data) 618s # { 618s # 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); 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_for_bus_finish: 618s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 618s # * @error: Return location for error or %NULL 618s # * 618s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error) 618s # { 618s # GObject *ret; 618s # GObject *source_object; 618s # source_object = g_async_result_get_source_object (res); 618s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 618s # g_object_unref (source_object); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_proxy_new_for_bus_sync: 618s # * @bus_type: A #GBusType. 618s # * @flags: Flags from the #GDBusProxyFlags enumeration. 618s # * @name: A bus name (well-known or unique). 618s # * @object_path: An object path. 618s # * @cancellable: (nullable): A #GCancellable or %NULL. 618s # * @error: Return location for error or %NULL 618s # * 618s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 618s # * 618s # * The calling thread is blocked until a reply is received. 618s # * 618s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error) 618s # { 618s # GInitable *ret; 618s # 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); 618s # if (ret != NULL) 618s # return COM_ACME_COYOTE (ret); 618s # else 618s # return NULL; 618s # } 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # 618s # /** 618s # * ComAcmeCoyoteSkeleton: 618s # * 618s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 618s # */ 618s # 618s # /** 618s # * ComAcmeCoyoteSkeletonClass: 618s # * @parent_class: The parent class. 618s # * 618s # * Class structure for #ComAcmeCoyoteSkeleton. 618s # */ 618s # 618s # struct _ComAcmeCoyoteSkeletonPrivate 618s # { 618s # GValue *properties; 618s # GList *changed_properties; 618s # GSource *changed_properties_idle_source; 618s # GMainContext *context; 618s # GMutex lock; 618s # }; 618s # 618s # static void 618s # _com_acme_coyote_skeleton_handle_method_call ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name, 618s # const gchar *method_name, 618s # GVariant *parameters, 618s # GDBusMethodInvocation *invocation, 618s # gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # _ExtendedGDBusMethodInfo *info; 618s # GVariantIter iter; 618s # GVariant *child; 618s # GValue *paramv; 618s # gsize num_params; 618s # guint num_extra; 618s # gsize n; 618s # guint signal_id; 618s # GValue return_value = G_VALUE_INIT; 618s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 618s # g_assert (info != NULL); 618s # num_params = g_variant_n_children (parameters); 618s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 618s # n = 0; 618s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 618s # g_value_set_object (¶mv[n++], skeleton); 618s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 618s # g_value_set_object (¶mv[n++], invocation); 618s # if (info->pass_fdlist) 618s # { 618s # #ifdef G_OS_UNIX 618s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 618s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 618s # #else 618s # g_assert_not_reached (); 618s # #endif 618s # } 618s # g_variant_iter_init (&iter, parameters); 618s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 618s # { 618s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 618s # if (arg_info->use_gvariant) 618s # { 618s # g_value_init (¶mv[n], G_TYPE_VARIANT); 618s # g_value_set_variant (¶mv[n], child); 618s # n++; 618s # } 618s # else 618s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 618s # g_variant_unref (child); 618s # } 618s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 618s # g_value_init (&return_value, G_TYPE_BOOLEAN); 618s # g_signal_emitv (paramv, signal_id, 0, &return_value); 618s # if (!g_value_get_boolean (&return_value)) 618s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 618s # g_value_unset (&return_value); 618s # for (n = 0; n < num_params + num_extra; n++) 618s # g_value_unset (¶mv[n]); 618s # g_free (paramv); 618s # } 618s # 618s # static GVariant * 618s # _com_acme_coyote_skeleton_handle_get_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # GVariant *ret; 618s # ret = NULL; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # g_value_init (&value, pspec->value_type); 618s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 618s # g_value_unset (&value); 618s # } 618s # return ret; 618s # } 618s # 618s # static gboolean 618s # _com_acme_coyote_skeleton_handle_set_property ( 618s # GDBusConnection *connection G_GNUC_UNUSED, 618s # const gchar *sender G_GNUC_UNUSED, 618s # const gchar *object_path G_GNUC_UNUSED, 618s # const gchar *interface_name G_GNUC_UNUSED, 618s # const gchar *property_name, 618s # GVariant *variant, 618s # GError **error, 618s # gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # GValue value = G_VALUE_INIT; 618s # GParamSpec *pspec; 618s # _ExtendedGDBusPropertyInfo *info; 618s # gboolean ret; 618s # ret = FALSE; 618s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 618s # g_assert (info != NULL); 618s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 618s # if (pspec == NULL) 618s # { 618s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 618s # } 618s # else 618s # { 618s # if (info->use_gvariant) 618s # g_value_set_variant (&value, variant); 618s # else 618s # g_dbus_gvariant_to_gvalue (variant, &value); 618s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 618s # g_value_unset (&value); 618s # ret = TRUE; 618s # } 618s # return ret; 618s # } 618s # 618s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 618s # { 618s # _com_acme_coyote_skeleton_handle_method_call, 618s # _com_acme_coyote_skeleton_handle_get_property, 618s # _com_acme_coyote_skeleton_handle_set_property, 618s # {NULL} 618s # }; 618s # 618s # static GDBusInterfaceInfo * 618s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return com_acme_coyote_interface_info (); 618s # } 618s # 618s # static GDBusInterfaceVTable * 618s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 618s # { 618s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 618s # } 618s # 618s # static GVariant * 618s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 618s # 618s # GVariantBuilder builder; 618s # guint n; 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #else 618s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 618s # #endif 618s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 618s # goto out; 618s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 618s # { 618s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 618s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 618s # { 618s # GVariant *value; 618s # 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); 618s # if (value != NULL) 618s # { 618s # g_variant_take_ref (value); 618s # g_variant_builder_add (&builder, "{sv}", info->name, value); 618s # g_variant_unref (value); 618s # } 618s # } 618s # } 618s # out: 618s # return g_variant_builder_end (&builder); 618s # } 618s # 618s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 618s # 618s # static void 618s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 618s # gboolean emit_changed = FALSE; 618s # 618s # g_mutex_lock (&skeleton->priv->lock); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # { 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # skeleton->priv->changed_properties_idle_source = NULL; 618s # emit_changed = TRUE; 618s # } 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # 618s # if (emit_changed) 618s # _com_acme_coyote_emit_changed (skeleton); 618s # } 618s # 618s # static void 618s # _com_acme_coyote_on_signal_surprised ( 618s # ComAcmeCoyote *object) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # 618s # GList *connections, *l; 618s # GVariant *signal_variant; 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # 618s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 618s # for (l = connections; l != NULL; l = l->next) 618s # { 618s # GDBusConnection *connection = l->data; 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 618s # signal_variant, NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # 618s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 618s # 618s # #else 618s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 618s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 618s # 618s # #endif 618s # static void 618s # com_acme_coyote_skeleton_finalize (GObject *object) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # guint n; 618s # for (n = 0; n < 1; n++) 618s # g_value_unset (&skeleton->priv->properties[n]); 618s # g_free (skeleton->priv->properties); 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # if (skeleton->priv->changed_properties_idle_source != NULL) 618s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 618s # g_main_context_unref (skeleton->priv->context); 618s # g_mutex_clear (&skeleton->priv->lock); 618s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_get_property (GObject *object, 618s # guint prop_id, 618s # GValue *value, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # g_mutex_lock (&skeleton->priv->lock); 618s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # } 618s # 618s # static gboolean 618s # _com_acme_coyote_emit_changed (gpointer user_data) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 618s # GList *l; 618s # GVariantBuilder builder; 618s # GVariantBuilder invalidated_builder; 618s # guint num_changes; 618s # 618s # g_mutex_lock (&skeleton->priv->lock); 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 618s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 618s # #else 618s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 618s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 618s # #endif 618s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 618s # { 618s # ChangedProperty *cp = l->data; 618s # GVariant *variant; 618s # const GValue *cur_value; 618s # 618s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 618s # if (!_g_value_equal (cur_value, &cp->orig_value)) 618s # { 618s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 618s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 618s # g_variant_unref (variant); 618s # num_changes++; 618s # } 618s # } 618s # if (num_changes > 0) 618s # { 618s # GList *connections, *ll; 618s # GVariant *signal_variant; 618s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 618s # &builder, &invalidated_builder)); 618s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 618s # for (ll = connections; ll != NULL; ll = ll->next) 618s # { 618s # GDBusConnection *connection = ll->data; 618s # 618s # g_dbus_connection_emit_signal (connection, 618s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 618s # "org.freedesktop.DBus.Properties", 618s # "PropertiesChanged", 618s # signal_variant, 618s # NULL); 618s # } 618s # g_variant_unref (signal_variant); 618s # g_list_free_full (connections, g_object_unref); 618s # } 618s # else 618s # { 618s # g_variant_builder_clear (&builder); 618s # g_variant_builder_clear (&invalidated_builder); 618s # } 618s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 618s # skeleton->priv->changed_properties = NULL; 618s # skeleton->priv->changed_properties_idle_source = NULL; 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # return FALSE; 618s # } 618s # 618s # static void 618s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 618s # { 618s # ChangedProperty *cp; 618s # GList *l; 618s # cp = NULL; 618s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 618s # { 618s # ChangedProperty *i_cp = l->data; 618s # if (i_cp->info == info) 618s # { 618s # cp = i_cp; 618s # break; 618s # } 618s # } 618s # if (cp == NULL) 618s # { 618s # cp = g_new0 (ChangedProperty, 1); 618s # cp->prop_id = prop_id; 618s # cp->info = info; 618s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 618s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 618s # g_value_copy (orig_value, &cp->orig_value); 618s # } 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_notify (GObject *object, 618s # GParamSpec *pspec G_GNUC_UNUSED) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # g_mutex_lock (&skeleton->priv->lock); 618s # if (skeleton->priv->changed_properties != NULL && 618s # skeleton->priv->changed_properties_idle_source == NULL) 618s # { 618s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 618s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 618s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 618s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 618s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 618s # g_source_unref (skeleton->priv->changed_properties_idle_source); 618s # } 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_set_property (GObject *object, 618s # guint prop_id, 618s # const GValue *value, 618s # GParamSpec *pspec) 618s # { 618s # const _ExtendedGDBusPropertyInfo *info; 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # g_assert (prop_id != 0 && prop_id - 1 < 1); 618s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 618s # g_mutex_lock (&skeleton->priv->lock); 618s # g_object_freeze_notify (object); 618s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 618s # { 618s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 618s # info->emits_changed_signal) 618s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 618s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 618s # g_object_notify_by_pspec (object, pspec); 618s # } 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # g_object_thaw_notify (object); 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 618s # { 618s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 618s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 618s # #else 618s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 618s # #endif 618s # 618s # g_mutex_init (&skeleton->priv->lock); 618s # skeleton->priv->context = g_main_context_ref_thread_default (); 618s # skeleton->priv->properties = g_new0 (GValue, 1); 618s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 618s # } 618s # 618s # static const gchar * 618s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 618s # { 618s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 618s # const gchar *value; 618s # g_mutex_lock (&skeleton->priv->lock); 618s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 618s # g_mutex_unlock (&skeleton->priv->lock); 618s # return value; 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 618s # { 618s # GObjectClass *gobject_class; 618s # GDBusInterfaceSkeletonClass *skeleton_class; 618s # 618s # gobject_class = G_OBJECT_CLASS (klass); 618s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 618s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 618s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 618s # gobject_class->notify = com_acme_coyote_skeleton_notify; 618s # 618s # 618s # com_acme_coyote_override_properties (gobject_class, 1); 618s # 618s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 618s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 618s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 618s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 618s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 618s # 618s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 618s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 618s # #endif 618s # } 618s # 618s # static void 618s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 618s # { 618s # iface->surprised = _com_acme_coyote_on_signal_surprised; 618s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 618s # } 618s # 618s # /** 618s # * com_acme_coyote_skeleton_new: 618s # * 618s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 618s # * 618s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 618s # */ 618s # ComAcmeCoyote * 618s # com_acme_coyote_skeleton_new (void) 618s # { 618s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 618s # } 618s # Error: 618s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 618s # gdbus-codegen: /usr/bin/gdbus-codegen 618s # tmpdir: /tmp/tmpexr8wfha 618s # /tmp/tmpexr8wfha/tmpmiy7ldn5.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpexr8wfha/tmpmiy7ldn5.xml', '--output', '-', '--header'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for FDPassing */ 618s # 618s # #define TYPE_FDPASSING (fdpassing_get_type ()) 618s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 618s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 618s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 618s # 618s # struct _FDPassing; 618s # typedef struct _FDPassing FDPassing; 618s # typedef struct _FDPassingIface FDPassingIface; 618s # 618s # struct _FDPassingIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # gboolean (*handle_hello_fd) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # const gchar *arg_greeting); 618s # 618s # gboolean (*handle_no_annotation) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale); 618s # 618s # gboolean (*handle_no_annotation_nested) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GVariant *arg_files); 618s # 618s # }; 618s # 618s # GType fdpassing_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *fdpassing_interface_info (void); 618s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void fdpassing_complete_hello_fd ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # const gchar *response); 618s # 618s # void fdpassing_complete_no_annotation ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GVariant *response, 618s # const gchar *response_locale); 618s # 618s # void fdpassing_complete_no_annotation_nested ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void fdpassing_call_hello_fd ( 618s # FDPassing *proxy, 618s # const gchar *arg_greeting, 618s # GUnixFDList *fd_list, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_hello_fd_finish ( 618s # FDPassing *proxy, 618s # gchar **out_response, 618s # GUnixFDList **out_fd_list, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_hello_fd_sync ( 618s # FDPassing *proxy, 618s # const gchar *arg_greeting, 618s # GUnixFDList *fd_list, 618s # gchar **out_response, 618s # GUnixFDList **out_fd_list, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_call_no_annotation ( 618s # FDPassing *proxy, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_no_annotation_finish ( 618s # FDPassing *proxy, 618s # GVariant **out_response, 618s # gchar **out_response_locale, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_no_annotation_sync ( 618s # FDPassing *proxy, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale, 618s # GVariant **out_response, 618s # gchar **out_response_locale, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_call_no_annotation_nested ( 618s # FDPassing *proxy, 618s # GVariant *arg_files, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_no_annotation_nested_finish ( 618s # FDPassing *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_no_annotation_nested_sync ( 618s # FDPassing *proxy, 618s # GVariant *arg_files, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 618s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 618s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 618s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 618s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 618s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 618s # 618s # typedef struct _FDPassingProxy FDPassingProxy; 618s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 618s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 618s # 618s # struct _FDPassingProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # FDPassingProxyPrivate *priv; 618s # }; 618s # 618s # struct _FDPassingProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 618s # #endif 618s # 618s # void fdpassing_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # FDPassing *fdpassing_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # FDPassing *fdpassing_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 618s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 618s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 618s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 618s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 618s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 618s # 618s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 618s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 618s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 618s # 618s # struct _FDPassingSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # FDPassingSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _FDPassingSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 618s # #endif 618s # 618s # FDPassing *fdpassing_skeleton_new (void); 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s # 618s # /tmp/tmpexr8wfha/tmp93f5mhmw.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpexr8wfha/tmp93f5mhmw.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for FDPassing */ 618s # 618s # #define TYPE_FDPASSING (fdpassing_get_type ()) 618s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 618s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 618s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 618s # 618s # struct _FDPassing; 618s # typedef struct _FDPassing FDPassing; 618s # typedef struct _FDPassingIface FDPassingIface; 618s # 618s # struct _FDPassingIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # gboolean (*handle_hello_fd) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # const gchar *arg_greeting); 618s # 618s # gboolean (*handle_no_annotation) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale); 618s # 618s # gboolean (*handle_no_annotation_nested) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GVariant *arg_files); 618s # 618s # }; 618s # 618s # GType fdpassing_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *fdpassing_interface_info (void); 618s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void fdpassing_complete_hello_fd ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # const gchar *response); 618s # 618s # void fdpassing_complete_no_annotation ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GVariant *response, 618s # const gchar *response_locale); 618s # 618s # void fdpassing_complete_no_annotation_nested ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void fdpassing_call_hello_fd ( 618s # FDPassing *proxy, 618s # const gchar *arg_greeting, 618s # GUnixFDList *fd_list, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_hello_fd_finish ( 618s # FDPassing *proxy, 618s # gchar **out_response, 618s # GUnixFDList **out_fd_list, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_hello_fd_sync ( 618s # FDPassing *proxy, 618s # const gchar *arg_greeting, 618s # GUnixFDList *fd_list, 618s # gchar **out_response, 618s # GUnixFDList **out_fd_list, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_call_no_annotation ( 618s # FDPassing *proxy, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_no_annotation_finish ( 618s # FDPassing *proxy, 618s # GVariant **out_response, 618s # gchar **out_response_locale, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_no_annotation_sync ( 618s # FDPassing *proxy, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale, 618s # GVariant **out_response, 618s # gchar **out_response_locale, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_call_no_annotation_nested ( 618s # FDPassing *proxy, 618s # GVariant *arg_files, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_no_annotation_nested_finish ( 618s # FDPassing *proxy, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_no_annotation_nested_sync ( 618s # FDPassing *proxy, 618s # GVariant *arg_files, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 618s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 618s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 618s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 618s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 618s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 618s # 618s # typedef struct _FDPassingProxy FDPassingProxy; 618s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 618s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 618s # 618s # struct _FDPassingProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # FDPassingProxyPrivate *priv; 618s # }; 618s # 618s # struct _FDPassingProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 618s # #endif 618s # 618s # void fdpassing_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # FDPassing *fdpassing_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # FDPassing *fdpassing_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 618s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 618s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 618s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 618s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 618s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 618s # 618s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 618s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 618s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 618s # 618s # struct _FDPassingSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # FDPassingSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _FDPassingSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 618s # #endif 618s # 618s # FDPassing *fdpassing_skeleton_new (void); 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s # 618s # /tmp/tmpexr8wfha/tmpdxr7hm3z.xml: 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # 618s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpexr8wfha/tmpdxr7hm3z.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 618s # Return code: 0 618s # Output: 618s # /* 618s # * This file is generated by gdbus-codegen, do not modify it. 618s # * 618s # * The license of this code is the same as for the D-Bus interface description 618s # * it was derived from. Note that it links to GLib, so must comply with the 618s # * LGPL linking clauses. 618s # */ 618s # 618s # #ifndef __STDOUT__ 618s # #define __STDOUT__ 618s # 618s # #include 618s # 618s # G_BEGIN_DECLS 618s # 618s # 618s # /* ------------------------------------------------------------------------ */ 618s # /* Declarations for FDPassing */ 618s # 618s # #define TYPE_FDPASSING (fdpassing_get_type ()) 618s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 618s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 618s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 618s # 618s # struct _FDPassing; 618s # typedef struct _FDPassing FDPassing; 618s # typedef struct _FDPassingIface FDPassingIface; 618s # 618s # struct _FDPassingIface 618s # { 618s # GTypeInterface parent_iface; 618s # 618s # gboolean (*handle_hello_fd) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # const gchar *arg_greeting); 618s # 618s # gboolean (*handle_no_annotation) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale); 618s # 618s # gboolean (*handle_no_annotation_nested) ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # GVariant *arg_files); 618s # 618s # }; 618s # 618s # GType fdpassing_get_type (void) G_GNUC_CONST; 618s # 618s # GDBusInterfaceInfo *fdpassing_interface_info (void); 618s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 618s # 618s # 618s # /* D-Bus method call completion functions: */ 618s # void fdpassing_complete_hello_fd ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # const gchar *response); 618s # 618s # void fdpassing_complete_no_annotation ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list, 618s # GVariant *response, 618s # const gchar *response_locale); 618s # 618s # void fdpassing_complete_no_annotation_nested ( 618s # FDPassing *object, 618s # GDBusMethodInvocation *invocation, 618s # GUnixFDList *fd_list); 618s # 618s # 618s # 618s # /* D-Bus method calls: */ 618s # void fdpassing_call_hello_fd ( 618s # FDPassing *proxy, 618s # const gchar *arg_greeting, 618s # GDBusCallFlags call_flags, 618s # gint timeout_msec, 618s # GUnixFDList *fd_list, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_hello_fd_finish ( 618s # FDPassing *proxy, 618s # gchar **out_response, 618s # GUnixFDList **out_fd_list, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_hello_fd_sync ( 618s # FDPassing *proxy, 618s # const gchar *arg_greeting, 618s # GDBusCallFlags call_flags, 618s # gint timeout_msec, 618s # GUnixFDList *fd_list, 618s # gchar **out_response, 618s # GUnixFDList **out_fd_list, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_call_no_annotation ( 618s # FDPassing *proxy, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale, 618s # GDBusCallFlags call_flags, 618s # gint timeout_msec, 618s # GUnixFDList *fd_list, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_no_annotation_finish ( 618s # FDPassing *proxy, 618s # GVariant **out_response, 618s # gchar **out_response_locale, 618s # GUnixFDList **out_fd_list, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_no_annotation_sync ( 618s # FDPassing *proxy, 618s # GVariant *arg_greeting, 618s # const gchar *arg_greeting_locale, 618s # GDBusCallFlags call_flags, 618s # gint timeout_msec, 618s # GUnixFDList *fd_list, 618s # GVariant **out_response, 618s # gchar **out_response_locale, 618s # GUnixFDList **out_fd_list, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_call_no_annotation_nested ( 618s # FDPassing *proxy, 618s # GVariant *arg_files, 618s # GDBusCallFlags call_flags, 618s # gint timeout_msec, 618s # GUnixFDList *fd_list, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # 618s # gboolean fdpassing_call_no_annotation_nested_finish ( 618s # FDPassing *proxy, 618s # GUnixFDList **out_fd_list, 618s # GAsyncResult *res, 618s # GError **error); 618s # 618s # gboolean fdpassing_call_no_annotation_nested_sync ( 618s # FDPassing *proxy, 618s # GVariant *arg_files, 618s # GDBusCallFlags call_flags, 618s # gint timeout_msec, 618s # GUnixFDList *fd_list, 618s # GUnixFDList **out_fd_list, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 618s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 618s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 618s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 618s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 618s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 618s # 618s # typedef struct _FDPassingProxy FDPassingProxy; 618s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 618s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 618s # 618s # struct _FDPassingProxy 618s # { 618s # /*< private >*/ 618s # GDBusProxy parent_instance; 618s # FDPassingProxyPrivate *priv; 618s # }; 618s # 618s # struct _FDPassingProxyClass 618s # { 618s # GDBusProxyClass parent_class; 618s # }; 618s # 618s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 618s # #endif 618s # 618s # void fdpassing_proxy_new ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # FDPassing *fdpassing_proxy_new_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # FDPassing *fdpassing_proxy_new_sync ( 618s # GDBusConnection *connection, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # void fdpassing_proxy_new_for_bus ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GAsyncReadyCallback callback, 618s # gpointer user_data); 618s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 618s # GAsyncResult *res, 618s # GError **error); 618s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 618s # GBusType bus_type, 618s # GDBusProxyFlags flags, 618s # const gchar *name, 618s # const gchar *object_path, 618s # GCancellable *cancellable, 618s # GError **error); 618s # 618s # 618s # /* ---- */ 618s # 618s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 618s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 618s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 618s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 618s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 618s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 618s # 618s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 618s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 618s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 618s # 618s # struct _FDPassingSkeleton 618s # { 618s # /*< private >*/ 618s # GDBusInterfaceSkeleton parent_instance; 618s # FDPassingSkeletonPrivate *priv; 618s # }; 618s # 618s # struct _FDPassingSkeletonClass 618s # { 618s # GDBusInterfaceSkeletonClass parent_class; 618s # }; 618s # 618s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 618s # 618s # #if GLIB_CHECK_VERSION(2, 44, 0) 618s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 618s # #endif 618s # 618s # FDPassing *fdpassing_skeleton_new (void); 618s # 618s # 618s # G_END_DECLS 618s # 618s # #endif /* __STDOUT__ */ 618s # Error: 618s 1..39 618s TAP version 14 618s # random seed: R02S74c860aaf528895feb6abc34ba6d6e43 618s 1..59 618s # Start of option tests 618s ok 1 /option/basic 618s ok 2 /option/translate 618s ok 3 /option/strict-posix 618s # Testing command: program --double abc 618s # Testing command: program --double 2e309 618s # Testing command: program --int abc 618s # Testing command: program --int 99999999999999999999999999999999999 618s # Testing command: program --int64 abc 618s # Testing command: program --int64 99999999999999999999999999999999999 618s ok 4 /option/parsing-errors 618s # Start of help tests 618s ok 5 /option/help/options 618s ok 6 /option/help/no-options 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 618s ok 7 /option/help/no-help-options 618s # Usage: 618s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 618s # 618s # Summary 618s # 618s # Help Options: 618s # -h, --help Show help options 618s # 618s # Application Options: 618s # -t, --test=Argument to use in test (deprecated) Test tests 618s # --test2 Tests also 618s # 618s # Description 618s # 618s ok 8 /option/help/deprecated 618s # End of help tests 618s # Start of group tests 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 618s ok 9 /option/group/captions 618s ok 10 /option/group/main 618s ok 11 /option/group/error-hook 618s ok 12 /option/group/parse 618s # Start of captions tests 618s # Start of subprocess tests 618s # End of subprocess tests 618s # End of captions tests 618s # End of group tests 618s # Start of restoration tests 618s ok 13 /option/restoration/int 618s ok 14 /option/restoration/string 618s ok 15 /option/restoration/boolean 618s # End of restoration tests 618s # Start of arg tests 618s ok 16 /option/arg/reverse-string 618s ok 17 /option/arg/optional-int 618s # Start of repetition tests 618s ok 18 /option/arg/repetition/int 618s ok 19 /option/arg/repetition/string 618s ok 20 /option/arg/repetition/filename 618s ok 21 /option/arg/repetition/double 618s ok 22 /option/arg/repetition/locale 618s ok 23 /option/arg/repetition/int64 618s # End of repetition tests 618s # Start of array tests 618s ok 24 /option/arg/array/string 618s # End of array tests 618s # Start of callback tests 618s ok 25 /option/arg/callback/string 618s ok 26 /option/arg/callback/count 618s ok 27 /option/arg/callback/optional1 618s ok 28 /option/arg/callback/optional2 618s ok 29 /option/arg/callback/optional3 618s ok 30 /option/arg/callback/optional4 618s ok 31 /option/arg/callback/optional5 618s ok 32 /option/arg/callback/optional6 618s ok 33 /option/arg/callback/optional7 618s ok 34 /option/arg/callback/optional8 618s # End of callback tests 618s # Start of remaining tests 618s ok 35 /option/arg/remaining/callback 618s ok 36 /option/arg/remaining/callback-false 618s ok 37 /option/arg/remaining/non-option 618s ok 38 /option/arg/remaining/separator 618s ok 39 /option/arg/remaining/array 618s # End of remaining tests 618s # Start of ignore tests 618s ok 40 /option/arg/ignore/long 618s ok 41 /option/arg/ignore/short 618s ok 42 /option/arg/ignore/arg 618s # End of ignore tests 618s # Start of rest tests 618s ok 43 /option/arg/rest/non-option 618s ok 44 /option/arg/rest/separator1 618s ok 45 /option/arg/rest/separator2 618s ok 46 /option/arg/rest/separator3 618s ok 47 /option/arg/rest/separator4 618s ok 48 /option/arg/rest/separator5 618s # End of rest tests 618s # End of arg tests 618s # Start of context tests 618s ok 49 /option/context/add 618s ok 50 /option/context/empty2 618s ok 51 /option/context/empty3 618s # End of context tests 618s # Start of bug tests 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 618s ok 52 /option/bug/unknown-short 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 618s ok 53 /option/bug/lonely-dash 618s ok 54 /option/bug/triple-dash 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 618s ok 55 /option/bug/missing-arg 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 618s ok 56 /option/bug/dash-arg 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 618s ok 57 /option/bug/short-remaining 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 618s ok 58 /option/bug/double-free 618s ok 59 /option/bug/double-zero 618s # End of bug tests 618s # End of option tests 618s TAP version 14 618s # random seed: R02Sc39c087bd321eff67cd997bdfbf83daf 618s 1..1 618s # Start of include tests 618s ok 1 /include/rwlock 618s # End of include tests 618s TAP version 14 618s # random seed: R02Sf0b163958bb018dd711a1564cce4023c 618s 1..848 618s # Start of regex tests 618s ok 1 /regex/properties 618s ok 2 /regex/class 618s ok 3 /regex/lookahead 618s ok 4 /regex/lookbehind 618s ok 5 /regex/subpattern 618s ok 6 /regex/condition 618s ok 7 /regex/recursion 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 618s ok 8 /regex/multiline 618s ok 9 /regex/explicit-crlf 618s ok 10 /regex/max-lookbehind 618s ok 11 /regex/compile-errors 618s ok 12 /regex/jit-unsupported-matching 618s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 618s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 618s ok 13 /regex/unmatched-named-subpattern 618s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 618s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 618s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 618s ok - glib/codegen.py.test 618s # Running test: glib/option-context.test 618s ok - glib/option-context.test 618s # Running test: glib/include.test 618s ok - glib/include.test 618s # Running test: glib/regex.test 618s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 618s ok 14 /regex/compiled-regex-after-jit-failure 618s # Start of new tests 618s ok 15 /regex/new/1 618s ok 16 /regex/new/2 618s ok 17 /regex/new/3 618s ok 18 /regex/new/4 618s ok 19 /regex/new/5 618s ok 20 /regex/new/6 618s ok 21 /regex/new/7 618s ok 22 /regex/new/8 618s ok 23 /regex/new/9 618s ok 24 /regex/new/10 618s ok 25 /regex/new/11 618s ok 26 /regex/new/12 618s ok 27 /regex/new/13 618s ok 28 /regex/new/14 618s ok 29 /regex/new/15 618s ok 30 /regex/new/16 618s ok 31 /regex/new/17 618s ok 32 /regex/new/18 618s ok 33 /regex/new/19 618s ok 34 /regex/new/71 618s ok 35 /regex/new/80 618s ok 36 /regex/new/82 618s # End of new tests 618s # Start of new-check-flags tests 618s ok 37 /regex/new-check-flags/20 618s ok 38 /regex/new-check-flags/21 618s ok 39 /regex/new-check-flags/22 618s ok 40 /regex/new-check-flags/23 618s ok 41 /regex/new-check-flags/24 618s ok 42 /regex/new-check-flags/25 618s ok 43 /regex/new-check-flags/26 618s ok 44 /regex/new-check-flags/27 618s ok 45 /regex/new-check-flags/28 618s ok 46 /regex/new-check-flags/29 618s ok 47 /regex/new-check-flags/30 618s ok 48 /regex/new-check-flags/31 618s ok 49 /regex/new-check-flags/32 618s ok 50 /regex/new-check-flags/33 618s ok 51 /regex/new-check-flags/34 618s ok 52 /regex/new-check-flags/35 618s ok 53 /regex/new-check-flags/36 618s # End of new-check-flags tests 618s # Start of new-fail tests 618s ok 54 /regex/new-fail/37 618s ok 55 /regex/new-fail/38 618s ok 56 /regex/new-fail/39 618s ok 57 /regex/new-fail/40 618s ok 58 /regex/new-fail/41 618s ok 59 /regex/new-fail/42 618s ok 60 /regex/new-fail/43 618s ok 61 /regex/new-fail/44 618s ok 62 /regex/new-fail/45 618s ok 63 /regex/new-fail/46 618s ok 64 /regex/new-fail/47 618s ok 65 /regex/new-fail/48 618s ok 66 /regex/new-fail/49 618s ok 67 /regex/new-fail/50 618s ok 68 /regex/new-fail/51 618s ok 69 /regex/new-fail/52 618s ok 70 /regex/new-fail/53 618s ok 71 /regex/new-fail/54 618s ok 72 /regex/new-fail/55 618s ok 73 /regex/new-fail/56 618s ok 74 /regex/new-fail/57 618s ok 75 /regex/new-fail/58 618s ok 76 /regex/new-fail/59 618s ok 77 /regex/new-fail/60 618s ok 78 /regex/new-fail/61 618s ok 79 /regex/new-fail/62 618s ok 80 /regex/new-fail/63 618s ok 81 /regex/new-fail/64 618s ok 82 /regex/new-fail/65 618s ok 83 /regex/new-fail/66 618s ok 84 /regex/new-fail/67 618s ok 85 /regex/new-fail/68 618s ok 86 /regex/new-fail/69 618s ok 87 /regex/new-fail/70 618s ok 88 /regex/new-fail/72 618s ok 89 /regex/new-fail/73 618s ok 90 /regex/new-fail/74 618s ok 91 /regex/new-fail/75 618s ok 92 /regex/new-fail/76 618s ok 93 /regex/new-fail/77 618s ok 94 /regex/new-fail/78 618s ok 95 /regex/new-fail/79 618s ok 96 /regex/new-fail/81 618s ok 97 /regex/new-fail/83 618s ok 98 /regex/new-fail/84 618s ok 99 /regex/new-fail/85 618s ok 100 /regex/new-fail/86 618s ok 101 /regex/new-fail/87 618s ok 102 /regex/new-fail/88 618s ok 103 /regex/new-fail/89 618s ok 104 /regex/new-fail/90 618s ok 105 /regex/new-fail/91 618s # End of new-fail tests 618s # Start of match-simple tests 618s ok 106 /regex/match-simple/92 618s ok 107 /regex/match-simple/93 618s ok 108 /regex/match-simple/94 618s ok 109 /regex/match-simple/95 618s ok 110 /regex/match-simple/96 618s ok 111 /regex/match-simple/97 618s ok 112 /regex/match-simple/98 618s ok 113 /regex/match-simple/99 618s ok 114 /regex/match-simple/100 618s ok 115 /regex/match-simple/101 618s ok 116 /regex/match-simple/102 618s ok 117 /regex/match-simple/103 618s ok 118 /regex/match-simple/104 618s ok 119 /regex/match-simple/105 618s ok 120 /regex/match-simple/106 618s ok 121 /regex/match-simple/107 618s ok 122 /regex/match-simple/108 618s ok 123 /regex/match-simple/109 618s ok 124 /regex/match-simple/110 618s ok 125 /regex/match-simple/111 618s ok 126 /regex/match-simple/112 618s ok 127 /regex/match-simple/113 618s ok 128 /regex/match-simple/114 618s ok 129 /regex/match-simple/115 618s ok 130 /regex/match-simple/116 618s ok 131 /regex/match-simple/117 618s ok 132 /regex/match-simple/118 618s ok 133 /regex/match-simple/119 618s ok 134 /regex/match-simple/120 618s ok 135 /regex/match-simple/121 618s ok 136 /regex/match-simple/122 618s ok 137 /regex/match-simple/123 618s ok 138 /regex/match-simple/124 618s ok 139 /regex/match-simple/125 618s ok 140 /regex/match-simple/126 618s ok 141 /regex/match-simple/127 618s ok 142 /regex/match-simple/128 618s ok 143 /regex/match-simple/129 618s ok 144 /regex/match-simple/130 618s ok 145 /regex/match-simple/131 618s ok 146 /regex/match-simple/132 618s ok 147 /regex/match-simple/133 618s ok 148 /regex/match-simple/134 618s ok 149 /regex/match-simple/135 618s ok 150 /regex/match-simple/136 618s ok 151 /regex/match-simple/137 618s ok 152 /regex/match-simple/138 618s ok 153 /regex/match-simple/139 618s ok 154 /regex/match-simple/140 618s ok 155 /regex/match-simple/141 618s ok 156 /regex/match-simple/142 618s ok 157 /regex/match-simple/143 618s ok 158 /regex/match-simple/144 618s ok 159 /regex/match-simple/145 618s ok 160 /regex/match-simple/146 618s ok 161 /regex/match-simple/147 618s ok 162 /regex/match-simple/148 618s ok 163 /regex/match-simple/149 618s ok 164 /regex/match-simple/150 618s ok 165 /regex/match-simple/151 618s ok 166 /regex/match-simple/152 618s ok 167 /regex/match-simple/153 618s ok 168 /regex/match-simple/154 618s ok 169 /regex/match-simple/155 618s ok 170 /regex/match-simple/156 618s ok 171 /regex/match-simple/157 618s ok 172 /regex/match-simple/158 618s ok 173 /regex/match-simple/159 618s ok 174 /regex/match-simple/160 618s ok 175 /regex/match-simple/161 618s ok 176 /regex/match-simple/162 618s ok 177 /regex/match-simple/163 618s ok 178 /regex/match-simple/164 618s # End of match-simple tests 618s # Start of match-simple-optimized tests 618s ok 179 /regex/match-simple-optimized/92 618s ok 180 /regex/match-simple-optimized/93 618s ok 181 /regex/match-simple-optimized/94 618s ok 182 /regex/match-simple-optimized/95 618s ok 183 /regex/match-simple-optimized/96 618s ok 184 /regex/match-simple-optimized/97 618s ok 185 /regex/match-simple-optimized/98 618s ok 186 /regex/match-simple-optimized/99 618s ok 187 /regex/match-simple-optimized/100 618s ok 188 /regex/match-simple-optimized/101 618s ok 189 /regex/match-simple-optimized/102 618s ok 190 /regex/match-simple-optimized/103 618s ok 191 /regex/match-simple-optimized/104 618s ok 192 /regex/match-simple-optimized/105 618s ok 193 /regex/match-simple-optimized/106 618s ok 194 /regex/match-simple-optimized/107 618s ok 195 /regex/match-simple-optimized/108 618s ok 196 /regex/match-simple-optimized/109 618s ok 197 /regex/match-simple-optimized/110 618s ok 198 /regex/match-simple-optimized/111 618s ok 199 /regex/match-simple-optimized/112 618s ok 200 /regex/match-simple-optimized/113 618s ok 201 /regex/match-simple-optimized/114 618s ok 202 /regex/match-simple-optimized/115 618s ok 203 /regex/match-simple-optimized/116 618s ok 204 /regex/match-simple-optimized/117 618s ok 205 /regex/match-simple-optimized/118 618s ok 206 /regex/match-simple-optimized/119 618s ok 207 /regex/match-simple-optimized/120 618s ok 208 /regex/match-simple-optimized/121 618s ok 209 /regex/match-simple-optimized/122 618s ok 210 /regex/match-simple-optimized/123 618s ok 211 /regex/match-simple-optimized/124 618s ok 212 /regex/match-simple-optimized/125 618s ok 213 /regex/match-simple-optimized/126 618s ok 214 /regex/match-simple-optimized/127 618s ok 215 /regex/match-simple-optimized/128 618s ok 216 /regex/match-simple-optimized/129 618s ok 217 /regex/match-simple-optimized/130 618s ok 218 /regex/match-simple-optimized/131 618s ok 219 /regex/match-simple-optimized/132 618s ok 220 /regex/match-simple-optimized/133 618s ok 221 /regex/match-simple-optimized/134 618s ok 222 /regex/match-simple-optimized/135 618s ok 223 /regex/match-simple-optimized/136 618s ok 224 /regex/match-simple-optimized/137 618s ok 225 /regex/match-simple-optimized/138 618s ok 226 /regex/match-simple-optimized/139 618s ok 227 /regex/match-simple-optimized/140 618s ok 228 /regex/match-simple-optimized/141 618s ok 229 /regex/match-simple-optimized/142 618s ok 230 /regex/match-simple-optimized/143 618s ok 231 /regex/match-simple-optimized/144 618s ok 232 /regex/match-simple-optimized/145 618s ok 233 /regex/match-simple-optimized/146 618s ok 234 /regex/match-simple-optimized/147 618s ok 235 /regex/match-simple-optimized/148 618s ok 236 /regex/match-simple-optimized/149 618s ok 237 /regex/match-simple-optimized/150 618s ok 238 /regex/match-simple-optimized/151 618s ok 239 /regex/match-simple-optimized/152 618s ok 240 /regex/match-simple-optimized/153 618s ok 241 /regex/match-simple-optimized/154 618s ok 242 /regex/match-simple-optimized/155 618s ok 243 /regex/match-simple-optimized/156 618s ok 244 /regex/match-simple-optimized/157 618s ok 245 /regex/match-simple-optimized/158 618s ok 246 /regex/match-simple-optimized/159 618s ok 247 /regex/match-simple-optimized/160 618s ok 248 /regex/match-simple-optimized/161 618s ok 249 /regex/match-simple-optimized/162 618s ok 250 /regex/match-simple-optimized/163 618s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 618s ok 251 /regex/match-simple-optimized/164 618s # End of match-simple-optimized tests 618s # Start of match tests 618s ok 252 /regex/match/165 618s ok 253 /regex/match/166 618s ok 254 /regex/match/167 618s ok 255 /regex/match/168 618s ok 256 /regex/match/169 618s ok 257 /regex/match/170 618s ok 258 /regex/match/171 618s ok 259 /regex/match/172 618s ok 260 /regex/match/173 618s ok 261 /regex/match/174 618s ok 262 /regex/match/175 618s ok 263 /regex/match/176 618s ok 264 /regex/match/177 618s ok 265 /regex/match/178 618s ok 266 /regex/match/179 618s ok 267 /regex/match/180 618s ok 268 /regex/match/181 618s ok 269 /regex/match/182 618s ok 270 /regex/match/183 618s ok 271 /regex/match/184 618s ok 272 /regex/match/185 618s ok 273 /regex/match/186 618s ok 274 /regex/match/187 618s ok 275 /regex/match/188 618s ok 276 /regex/match/189 618s ok 277 /regex/match/190 618s ok 278 /regex/match/191 618s ok 279 /regex/match/192 618s ok 280 /regex/match/193 618s ok 281 /regex/match/194 618s ok 282 /regex/match/195 618s ok 283 /regex/match/196 618s ok 284 /regex/match/197 618s ok 285 /regex/match/198 618s ok 286 /regex/match/199 618s ok 287 /regex/match/200 618s ok 288 /regex/match/201 618s ok 289 /regex/match/202 618s ok 290 /regex/match/203 618s ok 291 /regex/match/204 618s ok 292 /regex/match/205 618s ok 293 /regex/match/206 618s ok 294 /regex/match/207 618s ok 295 /regex/match/208 618s ok 296 /regex/match/209 618s ok 297 /regex/match/210 618s ok 298 /regex/match/211 618s ok 299 /regex/match/212 618s ok 300 /regex/match/213 618s ok 301 /regex/match/214 618s ok 302 /regex/match/215 618s ok 303 /regex/match/216 618s ok 304 /regex/match/217 618s ok 305 /regex/match/218 618s ok 306 /regex/match/219 618s ok 307 /regex/match/220 618s ok 308 /regex/match/221 618s ok 309 /regex/match/222 618s ok 310 /regex/match/223 618s ok 311 /regex/match/224 618s ok 312 /regex/match/225 618s ok 313 /regex/match/226 618s ok 314 /regex/match/227 618s ok 315 /regex/match/228 618s ok 316 /regex/match/229 618s ok 317 /regex/match/230 618s ok 318 /regex/match/231 618s ok 319 /regex/match/232 618s ok 320 /regex/match/233 618s ok 321 /regex/match/234 618s ok 322 /regex/match/235 618s ok 323 /regex/match/236 618s ok 324 /regex/match/237 618s ok 325 /regex/match/238 618s ok 326 /regex/match/239 618s ok 327 /regex/match/240 618s ok 328 /regex/match/241 618s ok 329 /regex/match/242 618s ok 330 /regex/match/243 618s ok 331 /regex/match/244 618s ok 332 /regex/match/245 618s ok 333 /regex/match/246 618s ok 334 /regex/match/partial281 618s ok 335 /regex/match/partial282 618s ok 336 /regex/match/partial283 618s ok 337 /regex/match/partial284 618s ok 338 /regex/match/partial285 618s ok 339 /regex/match/partial286 618s ok 340 /regex/match/partial287 618s ok 341 /regex/match/partial288 618s ok 342 /regex/match/partial289 618s ok 343 /regex/match/partial290 618s ok 344 /regex/match/partial291 618s ok 345 /regex/match/partial292 618s ok 346 /regex/match/partial293 618s ok 347 /regex/match/partial294 618s ok 348 /regex/match/partial295 618s ok 349 /regex/match/partial296 618s ok 350 /regex/match/partial297 618s ok 351 /regex/match/partial298 618s ok 352 /regex/match/partial299 618s ok 353 /regex/match/partial300 618s ok 354 /regex/match/partial301 618s ok 355 /regex/match/partial302 618s # Start of next0 tests 618s ok 356 /regex/match/next0/247 618s ok 357 /regex/match/next0/248 618s ok 358 /regex/match/next0/249 618s ok 359 /regex/match/next0/250 618s # End of next0 tests 618s # Start of next1 tests 618s ok 360 /regex/match/next1/251 618s ok 361 /regex/match/next1/252 618s ok 362 /regex/match/next1/253 618s ok 363 /regex/match/next1/254 618s ok 364 /regex/match/next1/255 618s # End of next1 tests 618s # Start of next2 tests 618s ok 365 /regex/match/next2/256 618s ok 366 /regex/match/next2/257 618s ok 367 /regex/match/next2/258 618s ok 368 /regex/match/next2/259 618s ok 369 /regex/match/next2/260 618s ok 370 /regex/match/next2/261 618s ok 371 /regex/match/next2/262 618s ok 372 /regex/match/next2/263 618s # End of next2 tests 618s # Start of next3 tests 618s ok 373 /regex/match/next3/264 618s ok 374 /regex/match/next3/265 618s ok 375 /regex/match/next3/266 618s ok 376 /regex/match/next3/267 618s ok 377 /regex/match/next3/268 618s ok 378 /regex/match/next3/269 618s # End of next3 tests 618s # Start of next4 tests 618s ok 379 /regex/match/next4/270 618s # End of next4 tests 618s # Start of count tests 618s ok 380 /regex/match/count/271 618s ok 381 /regex/match/count/272 618s ok 382 /regex/match/count/273 618s ok 383 /regex/match/count/274 618s ok 384 /regex/match/count/275 618s ok 385 /regex/match/count/276 618s ok 386 /regex/match/count/277 618s ok 387 /regex/match/count/278 618s ok 388 /regex/match/count/279 618s ok 389 /regex/match/count/280 618s # End of count tests 618s # Start of count-optimized tests 618s ok 390 /regex/match/count-optimized/271 618s ok 391 /regex/match/count-optimized/272 618s ok 392 /regex/match/count-optimized/273 618s ok 393 /regex/match/count-optimized/274 618s ok 394 /regex/match/count-optimized/275 618s ok 395 /regex/match/count-optimized/276 618s ok 396 /regex/match/count-optimized/277 618s ok 397 /regex/match/count-optimized/278 618s ok 398 /regex/match/count-optimized/279 618s ok 399 /regex/match/count-optimized/280 618s # End of count-optimized tests 618s # Start of partial-optimized tests 618s ok 400 /regex/match/partial-optimized/281 618s ok 401 /regex/match/partial-optimized/282 618s ok 402 /regex/match/partial-optimized/283 618s ok 403 /regex/match/partial-optimized/284 618s ok 404 /regex/match/partial-optimized/285 618s ok 405 /regex/match/partial-optimized/286 618s ok 406 /regex/match/partial-optimized/287 618s ok 407 /regex/match/partial-optimized/288 618s ok 408 /regex/match/partial-optimized/289 618s ok 409 /regex/match/partial-optimized/290 618s ok 410 /regex/match/partial-optimized/291 618s ok 411 /regex/match/partial-optimized/292 618s ok 412 /regex/match/partial-optimized/293 618s ok 413 /regex/match/partial-optimized/294 618s ok 414 /regex/match/partial-optimized/295 618s ok 415 /regex/match/partial-optimized/296 618s ok 416 /regex/match/partial-optimized/297 618s ok 417 /regex/match/partial-optimized/298 618s ok 418 /regex/match/partial-optimized/299 618s ok 419 /regex/match/partial-optimized/300 618s ok 420 /regex/match/partial-optimized/301 618s ok 421 /regex/match/partial-optimized/302 618s # End of partial-optimized tests 618s # Start of subpattern tests 618s ok 422 /regex/match/subpattern/303 618s ok 423 /regex/match/subpattern/304 618s ok 424 /regex/match/subpattern/305 618s ok 425 /regex/match/subpattern/306 618s ok 426 /regex/match/subpattern/307 618s ok 427 /regex/match/subpattern/308 618s ok 428 /regex/match/subpattern/309 618s ok 429 /regex/match/subpattern/310 618s ok 430 /regex/match/subpattern/311 618s ok 431 /regex/match/subpattern/312 618s ok 432 /regex/match/subpattern/313 618s ok 433 /regex/match/subpattern/314 618s ok 434 /regex/match/subpattern/315 618s # Start of named tests 618s # Start of dupnames tests 618s ok 435 /regex/match/subpattern/named/dupnames/325 618s ok 436 /regex/match/subpattern/named/dupnames/326 618s ok 437 /regex/match/subpattern/named/dupnames/327 618s ok 438 /regex/match/subpattern/named/dupnames/328 618s ok 439 /regex/match/subpattern/named/dupnames/329 618s # End of dupnames tests 618s # End of named tests 618s # End of subpattern tests 618s # Start of subpattern-optimized tests 618s ok 440 /regex/match/subpattern-optimized/303 618s ok 441 /regex/match/subpattern-optimized/304 618s ok 442 /regex/match/subpattern-optimized/305 618s ok 443 /regex/match/subpattern-optimized/306 618s ok 444 /regex/match/subpattern-optimized/307 618s ok 445 /regex/match/subpattern-optimized/308 618s ok 446 /regex/match/subpattern-optimized/309 618s ok 447 /regex/match/subpattern-optimized/310 618s ok 448 /regex/match/subpattern-optimized/311 618s ok 449 /regex/match/subpattern-optimized/312 618s ok 450 /regex/match/subpattern-optimized/313 618s ok 451 /regex/match/subpattern-optimized/314 618s ok 452 /regex/match/subpattern-optimized/315 618s # End of subpattern-optimized tests 618s # Start of named tests 618s # Start of subpattern tests 618s ok 453 /regex/match/named/subpattern/316 618s ok 454 /regex/match/named/subpattern/317 618s ok 455 /regex/match/named/subpattern/318 618s ok 456 /regex/match/named/subpattern/319 618s ok 457 /regex/match/named/subpattern/320 618s ok 458 /regex/match/named/subpattern/321 618s ok 459 /regex/match/named/subpattern/322 618s ok 460 /regex/match/named/subpattern/323 618s ok 461 /regex/match/named/subpattern/324 618s ok 462 /regex/match/named/subpattern/330 618s ok 463 /regex/match/named/subpattern/331 618s ok 464 /regex/match/named/subpattern/332 618s ok 465 /regex/match/named/subpattern/333 618s ok 466 /regex/match/named/subpattern/334 618s # End of subpattern tests 618s # End of named tests 618s # End of match tests 618s # Start of match-optimized tests 618s ok 467 /regex/match-optimized/165 618s ok 468 /regex/match-optimized/166 618s ok 469 /regex/match-optimized/167 618s ok 470 /regex/match-optimized/168 618s ok 471 /regex/match-optimized/169 618s ok 472 /regex/match-optimized/170 618s ok 473 /regex/match-optimized/171 618s ok 474 /regex/match-optimized/172 618s ok 475 /regex/match-optimized/173 618s ok 476 /regex/match-optimized/174 618s ok 477 /regex/match-optimized/175 618s ok 478 /regex/match-optimized/176 618s ok 479 /regex/match-optimized/177 618s ok 480 /regex/match-optimized/178 618s ok 481 /regex/match-optimized/179 618s ok 482 /regex/match-optimized/180 618s ok 483 /regex/match-optimized/181 618s ok 484 /regex/match-optimized/182 618s ok 485 /regex/match-optimized/183 618s ok 486 /regex/match-optimized/184 618s ok 487 /regex/match-optimized/185 618s ok 488 /regex/match-optimized/186 618s ok 489 /regex/match-optimized/187 618s ok 490 /regex/match-optimized/188 618s ok 491 /regex/match-optimized/189 618s ok 492 /regex/match-optimized/190 618s ok 493 /regex/match-optimized/191 618s ok 494 /regex/match-optimized/192 618s ok 495 /regex/match-optimized/193 618s ok 496 /regex/match-optimized/194 618s ok 497 /regex/match-optimized/195 618s ok 498 /regex/match-optimized/196 618s ok 499 /regex/match-optimized/197 618s ok 500 /regex/match-optimized/198 618s ok 501 /regex/match-optimized/199 618s ok 502 /regex/match-optimized/200 618s ok 503 /regex/match-optimized/201 618s ok 504 /regex/match-optimized/202 618s ok 505 /regex/match-optimized/203 618s ok 506 /regex/match-optimized/204 618s ok 507 /regex/match-optimized/205 618s ok 508 /regex/match-optimized/206 618s ok 509 /regex/match-optimized/207 618s ok 510 /regex/match-optimized/208 618s ok 511 /regex/match-optimized/209 618s ok 512 /regex/match-optimized/210 618s ok 513 /regex/match-optimized/211 618s ok 514 /regex/match-optimized/212 618s ok 515 /regex/match-optimized/213 618s ok 516 /regex/match-optimized/214 618s ok 517 /regex/match-optimized/215 618s ok 518 /regex/match-optimized/216 618s ok 519 /regex/match-optimized/217 618s ok 520 /regex/match-optimized/218 618s ok 521 /regex/match-optimized/219 618s ok 522 /regex/match-optimized/220 618s ok 523 /regex/match-optimized/221 618s ok 524 /regex/match-optimized/222 618s ok 525 /regex/match-optimized/223 618s ok 526 /regex/match-optimized/224 618s ok 527 /regex/match-optimized/225 618s ok 528 /regex/match-optimized/226 618s ok 529 /regex/match-optimized/227 618s ok 530 /regex/match-optimized/228 618s ok 531 /regex/match-optimized/229 618s ok 532 /regex/match-optimized/230 618s ok 533 /regex/match-optimized/231 618s ok 534 /regex/match-optimized/232 618s ok 535 /regex/match-optimized/233 618s ok 536 /regex/match-optimized/234 618s ok 537 /regex/match-optimized/235 618s ok 538 /regex/match-optimized/236 618s ok 539 /regex/match-optimized/237 618s ok 540 /regex/match-optimized/238 618s ok 541 /regex/match-optimized/239 618s ok 542 /regex/match-optimized/240 618s ok 543 /regex/match-optimized/241 618s ok 544 /regex/match-optimized/242 618s ok 545 /regex/match-optimized/243 618s ok 546 /regex/match-optimized/244 618s ok 547 /regex/match-optimized/245 618s ok 548 /regex/match-optimized/246 618s # End of match-optimized tests 618s # Start of fetch-all0 tests 618s ok 549 /regex/fetch-all0/335 618s ok 550 /regex/fetch-all0/336 618s # End of fetch-all0 tests 618s # Start of fetch-all1 tests 618s ok 551 /regex/fetch-all1/337 618s ok 552 /regex/fetch-all1/338 618s ok 553 /regex/fetch-all1/339 618s # End of fetch-all1 tests 618s # Start of fetch-all2 tests 618s ok 554 /regex/fetch-all2/340 618s ok 555 /regex/fetch-all2/341 618s ok 556 /regex/fetch-all2/342 618s # End of fetch-all2 tests 618s # Start of fetch-all3 tests 618s ok 557 /regex/fetch-all3/343 618s ok 558 /regex/fetch-all3/344 618s ok 559 /regex/fetch-all3/345 618s ok 560 /regex/fetch-all3/346 618s ok 561 /regex/fetch-all3/347 618s # End of fetch-all3 tests 618s # Start of split tests 618s # Start of simple0 tests 618s ok 562 /regex/split/simple0/348 618s ok 563 /regex/split/simple0/349 618s ok 564 /regex/split/simple0/364 618s ok 565 /regex/split/simple0/365 618s # End of simple0 tests 618s # Start of simple1 tests 618s ok 566 /regex/split/simple1/350 618s ok 567 /regex/split/simple1/351 618s # End of simple1 tests 618s # Start of simple2 tests 618s ok 568 /regex/split/simple2/352 618s ok 569 /regex/split/simple2/358 618s ok 570 /regex/split/simple2/360 618s # End of simple2 tests 618s # Start of simple3 tests 618s ok 571 /regex/split/simple3/353 618s ok 572 /regex/split/simple3/354 618s ok 573 /regex/split/simple3/355 618s ok 574 /regex/split/simple3/356 618s ok 575 /regex/split/simple3/357 618s ok 576 /regex/split/simple3/359 618s ok 577 /regex/split/simple3/361 618s ok 578 /regex/split/simple3/362 618s ok 579 /regex/split/simple3/363 618s # End of simple3 tests 618s # End of split tests 618s # Start of split0 tests 618s ok 580 /regex/split0/366 618s ok 581 /regex/split0/368 618s # End of split0 tests 618s # Start of full-split0 tests 618s ok 582 /regex/full-split0/367 618s ok 583 /regex/full-split0/369 618s ok 584 /regex/full-split0/370 618s ok 585 /regex/full-split0/371 618s ok 586 /regex/full-split0/372 618s # End of full-split0 tests 618s # Start of split1 tests 618s ok 587 /regex/split1/373 618s ok 588 /regex/split1/376 618s # End of split1 tests 618s # Start of full-split1 tests 618s ok 589 /regex/full-split1/374 618s ok 590 /regex/full-split1/375 618s ok 591 /regex/full-split1/377 618s ok 592 /regex/full-split1/378 618s ok 593 /regex/full-split1/404 618s # End of full-split1 tests 618s # Start of split2 tests 618s ok 594 /regex/split2/379 618s ok 595 /regex/split2/383 618s ok 596 /regex/split2/395 618s # End of split2 tests 618s # Start of full-split2 tests 618s ok 597 /regex/full-split2/380 618s ok 598 /regex/full-split2/381 618s ok 599 /regex/full-split2/382 618s ok 600 /regex/full-split2/384 618s ok 601 /regex/full-split2/396 618s ok 602 /regex/full-split2/399 618s ok 603 /regex/full-split2/405 618s # End of full-split2 tests 618s # Start of split3 tests 618s ok 604 /regex/split3/385 618s ok 605 /regex/split3/387 618s ok 606 /regex/split3/389 618s ok 607 /regex/split3/391 618s ok 608 /regex/split3/393 618s ok 609 /regex/split3/397 618s ok 610 /regex/split3/400 618s ok 611 /regex/split3/402 618s # End of split3 tests 618s # Start of full-split3 tests 618s ok 612 /regex/full-split3/386 618s ok 613 /regex/full-split3/388 618s ok 614 /regex/full-split3/390 618s ok 615 /regex/full-split3/392 618s ok 616 /regex/full-split3/394 618s ok 617 /regex/full-split3/398 618s ok 618 /regex/full-split3/401 618s ok 619 /regex/full-split3/403 618s ok 620 /regex/full-split3/406 618s ok 621 /regex/full-split3/407 618s # End of full-split3 tests 618s # Start of check-repacement tests 618s ok 622 /regex/check-repacement/408 618s ok 623 /regex/check-repacement/409 618s ok 624 /regex/check-repacement/410 618s ok 625 /regex/check-repacement/411 618s ok 626 /regex/check-repacement/412 618s ok 627 /regex/check-repacement/413 618s ok 628 /regex/check-repacement/414 618s ok 629 /regex/check-repacement/415 618s # End of check-repacement tests 618s # Start of expand tests 618s ok 630 /regex/expand/416 618s ok 631 /regex/expand/417 618s ok 632 /regex/expand/418 618s ok 633 /regex/expand/419 618s ok 634 /regex/expand/420 618s ok 635 /regex/expand/421 618s ok 636 /regex/expand/422 618s ok 637 /regex/expand/423 618s ok 638 /regex/expand/424 618s ok 639 /regex/expand/425 618s ok 640 /regex/expand/426 618s ok 641 /regex/expand/427 618s ok 642 /regex/expand/428 618s ok 643 /regex/expand/429 618s ok 644 /regex/expand/430 618s ok 645 /regex/expand/431 618s ok 646 /regex/expand/432 618s ok 647 /regex/expand/433 618s ok 648 /regex/expand/434 618s ok 649 /regex/expand/435 618s ok 650 /regex/expand/436 618s ok 651 /regex/expand/437 618s ok 652 /regex/expand/438 618s ok 653 /regex/expand/439 618s ok 654 /regex/expand/440 618s ok 655 /regex/expand/441 618s ok 656 /regex/expand/442 618s ok 657 /regex/expand/443 618s ok 658 /regex/expand/444 618s ok 659 /regex/expand/445 618s ok 660 /regex/expand/446 618s ok 661 /regex/expand/447 618s ok 662 /regex/expand/448 618s ok 663 /regex/expand/449 618s ok 664 /regex/expand/450 618s ok 665 /regex/expand/451 618s ok 666 /regex/expand/452 618s ok 667 /regex/expand/453 618s ok 668 /regex/expand/454 618s ok 669 /regex/expand/455 618s ok 670 /regex/expand/456 618s ok 671 /regex/expand/457 618s ok 672 /regex/expand/458 618s ok 673 /regex/expand/459 618s ok 674 /regex/expand/460 618s ok 675 /regex/expand/461 618s ok 676 /regex/expand/462 618s ok 677 /regex/expand/463 618s ok 678 /regex/expand/464 618s ok 679 /regex/expand/465 618s ok 680 /regex/expand/466 618s ok 681 /regex/expand/467 618s ok 682 /regex/expand/468 618s ok 683 /regex/expand/469 618s ok 684 /regex/expand/470 618s ok 685 /regex/expand/471 618s ok 686 /regex/expand/472 618s ok 687 /regex/expand/473 618s ok 688 /regex/expand/474 618s ok 689 /regex/expand/475 618s ok 690 /regex/expand/476 618s ok 691 /regex/expand/477 618s ok 692 /regex/expand/478 618s ok 693 /regex/expand/479 618s ok 694 /regex/expand/480 618s ok 695 /regex/expand/481 618s # End of expand tests 618s # Start of replace tests 618s ok 696 /regex/replace/482 618s ok 697 /regex/replace/483 618s ok 698 /regex/replace/484 618s ok 699 /regex/replace/485 618s ok 700 /regex/replace/486 618s ok 701 /regex/replace/487 618s ok 702 /regex/replace/488 618s ok 703 /regex/replace/489 618s ok 704 /regex/replace/490 618s ok 705 /regex/replace/491 618s ok 706 /regex/replace/492 618s ok 707 /regex/replace/493 618s ok 708 /regex/replace/494 618s ok 709 /regex/replace/495 618s ok 710 /regex/replace/496 618s ok 711 /regex/replace/497 618s ok 712 /regex/replace/498 618s ok 713 /regex/replace/499 618s ok 714 /regex/replace/500 618s ok 715 /regex/replace/501 618s ok 716 /regex/replace/502 618s ok 717 /regex/replace/503 618s ok 718 /regex/replace/504 618s ok 719 /regex/replace/505 618s ok 720 /regex/replace/506 618s ok 721 /regex/replace/507 618s ok 722 /regex/replace/508 618s ok 723 /regex/replace/509 618s # End of replace tests 618s # Start of replace-optimized tests 618s ok 724 /regex/replace-optimized/482 618s ok 725 /regex/replace-optimized/483 618s ok 726 /regex/replace-optimized/484 618s ok 727 /regex/replace-optimized/485 618s ok 728 /regex/replace-optimized/486 618s ok 729 /regex/replace-optimized/487 618s ok 730 /regex/replace-optimized/488 618s ok 731 /regex/replace-optimized/489 618s ok 732 /regex/replace-optimized/490 618s ok 733 /regex/replace-optimized/491 618s ok 734 /regex/replace-optimized/492 618s ok 735 /regex/replace-optimized/493 618s ok 736 /regex/replace-optimized/494 618s ok 737 /regex/replace-optimized/495 618s ok 738 /regex/replace-optimized/496 618s ok 739 /regex/replace-optimized/497 618s ok 740 /regex/replace-optimized/498 618s ok 741 /regex/replace-optimized/499 618s ok 742 /regex/replace-optimized/500 618s ok 743 /regex/replace-optimized/501 618s ok 744 /regex/replace-optimized/502 618s ok 745 /regex/replace-optimized/503 618s ok 746 /regex/replace-optimized/504 618s ok 747 /regex/replace-optimized/505 618s ok 748 /regex/replace-optimized/506 618s ok 749 /regex/replace-optimized/507 618s ok 750 /regex/replace-optimized/508 618s ok 751 /regex/replace-optimized/509 618s # End of replace-optimized tests 618s # Start of replace-literally tests 618s ok 752 /regex/replace-literally/510 618s ok 753 /regex/replace-literally/511 618s ok 754 /regex/replace-literally/512 618s ok 755 /regex/replace-literally/513 618s ok 756 /regex/replace-literally/514 618s ok 757 /regex/replace-literally/515 618s ok 758 /regex/replace-literally/516 618s ok 759 /regex/replace-literally/517 618s ok 760 /regex/replace-literally/518 618s ok 761 /regex/replace-literally/519 618s ok 762 /regex/replace-literally/520 618s ok 763 /regex/replace-literally/521 618s ok 764 /regex/replace-literally/522 618s ok 765 /regex/replace-literally/523 618s ok 766 /regex/replace-literally/524 618s ok 767 /regex/replace-literally/525 618s ok 768 /regex/replace-literally/526 618s ok 769 /regex/replace-literally/527 618s ok 770 /regex/replace-literally/528 618s ok 771 /regex/replace-literally/529 618s # End of replace-literally tests 618s # Start of string-number tests 618s ok 772 /regex/string-number/530 618s ok 773 /regex/string-number/531 618s ok 774 /regex/string-number/532 618s ok 775 /regex/string-number/533 618s ok 776 /regex/string-number/534 618s ok 777 /regex/string-number/535 618s ok 778 /regex/string-number/536 618s ok 779 /regex/string-number/537 618s ok 780 /regex/string-number/538 618s ok 781 /regex/string-number/539 618s ok 782 /regex/string-number/540 618s ok 783 /regex/string-number/541 618s ok 784 /regex/string-number/542 618s ok 785 /regex/string-number/543 618s ok 786 /regex/string-number/544 618s # End of string-number tests 618s # Start of escape_nul tests 618s ok 787 /regex/escape_nul/545 618s ok 788 /regex/escape_nul/546 618s ok 789 /regex/escape_nul/547 618s ok 790 /regex/escape_nul/548 618s ok 791 /regex/escape_nul/549 618s ok 792 /regex/escape_nul/550 618s ok 793 /regex/escape_nul/551 618s ok 794 /regex/escape_nul/552 618s ok 795 /regex/escape_nul/553 618s ok 796 /regex/escape_nul/554 618s ok 797 /regex/escape_nul/555 618s ok 798 /regex/escape_nul/556 618s ok 799 /regex/escape_nul/557 618s ok 800 /regex/escape_nul/558 618s ok 801 /regex/escape_nul/559 618s # End of escape_nul tests 618s # Start of escape tests 618s ok 802 /regex/escape/560 618s ok 803 /regex/escape/561 618s ok 804 /regex/escape/562 618s ok 805 /regex/escape/563 618s ok 806 /regex/escape/564 618s ok 807 /regex/escape/565 618s ok 808 /regex/escape/566 618s ok 809 /regex/escape/567 618s ok 810 /regex/escape/568 618s ok 811 /regex/escape/569 618s ok 812 /regex/escape/570 618s ok 813 /regex/escape/571 618s ok 814 /regex/escape/572 618s ok 815 /regex/escape/573 618s ok 816 /regex/escape/574 618s ok 817 /regex/escape/575 618s ok 818 /regex/escape/576 618s ok 819 /regex/escape/577 618s # End of escape tests 618s # Start of match-all0 tests 618s ok 820 /regex/match-all0/578 618s ok 821 /regex/match-all0/580 618s # End of match-all0 tests 618s # Start of match-all-full0 tests 618s ok 822 /regex/match-all-full0/579 618s ok 823 /regex/match-all-full0/581 618s ok 824 /regex/match-all-full0/582 618s ok 825 /regex/match-all-full0/583 618s # End of match-all-full0 tests 618s # Start of match-all1 tests 618s ok 826 /regex/match-all1/584 618s ok 827 /regex/match-all1/586 618s ok 828 /regex/match-all1/591 618s # End of match-all1 tests 618s # Start of match-all-full1 tests 618s ok 829 /regex/match-all-full1/585 618s ok 830 /regex/match-all-full1/587 618s ok 831 /regex/match-all-full1/588 618s ok 832 /regex/match-all-full1/589 618s ok 833 /regex/match-all-full1/590 618s ok 834 /regex/match-all-full1/592 618s # End of match-all-full1 tests 618s # Start of match-all2 tests 618s ok 835 /regex/match-all2/593 618s ok 836 /regex/match-all2/595 618s ok 837 /regex/match-all2/597 618s # End of match-all2 tests 618s # Start of match-all-full2 tests 618s ok 838 /regex/match-all-full2/594 618s ok 839 /regex/match-all-full2/596 618s ok 840 /regex/match-all-full2/598 618s # End of match-all-full2 tests 618s # Start of match-all3 tests 618s ok - glib/regex.test 618s # Running test: glib/properties-refcount2.test 618s ok 841 /regex/match-all3/599 618s ok 842 /regex/match-all3/601 618s # End of match-all3 tests 618s # Start of match-all-full3 tests 618s ok 843 /regex/match-all-full3/600 618s ok 844 /regex/match-all-full3/602 618s # End of match-all-full3 tests 618s # Start of match-notempty tests 618s ok 845 /regex/match-notempty/603 618s # End of match-notempty tests 618s # Start of match-notempty-optimized tests 618s ok 846 /regex/match-notempty-optimized/603 618s # End of match-notempty-optimized tests 618s # Start of match-notempty-atstart tests 618s ok 847 /regex/match-notempty-atstart/604 618s # End of match-notempty-atstart tests 618s # Start of match-notempty-atstart-optimized tests 618s ok 848 /regex/match-notempty-atstart-optimized/604 618s # End of match-notempty-atstart-optimized tests 618s # End of regex tests 618s TAP version 14 618s # random seed: R02S3ce5f8f3ceb9065f676babc0e0b41d2c 618s 1..1 618s # Start of gobject tests 618s # Start of refcount tests 618s # init 0x59a723d3ceb0 618s # 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # . 618s # dispose 0x59a723d3ceb0! 618s # 618s ok 1 /gobject/refcount/properties-2 618s # End of refcount tests 618s # End of gobject tests 618s ok - glib/properties-refcount2.test 618s # Running test: glib/mem-overflow.test 618s TAP version 14 618s # random seed: R02Sf116c7726f175ed2c09ac17179c1dd9d 618s 1..2 618s # Start of mem tests 618s ok 1 /mem/overflow 618s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 618s ok 2 /mem/empty-alloc 618s # Start of overflow tests 618s # Start of subprocess tests 618s # End of subprocess tests 618s # End of overflow tests 618s # Start of empty-alloc tests 618s # End of empty-alloc tests 618s # End of mem tests 618s ok - glib/mem-overflow.test 618s # Running test: glib/markup.test 618s TAP version 14 618s # random seed: R02Sc0a1da2bf3eecc7f21ae7ef7ab64b665 618s 1..1 618s # Start of markup tests 618s ok 1 /markup/stack 618s # End of markup tests 618s ok - glib/markup.test 618s # Running test: glib/giomodule.test 618s TAP version 14 618s # random seed: R02Sf30c961081cdec5cea3e62c514911d74 618s 1..3 618s # Start of giomodule tests 618s ok 1 /giomodule/extension-point 618s ok 2 /giomodule/module-scan-all 618s ok 3 /giomodule/module-scan-all-with-scope 618s # End of giomodule tests 618s ok - glib/giomodule.test 618s # Running test: glib/gdatetime.test 618s TAP version 14 618s # random seed: R02S568e2d7bfb43b1b0d31ead807583808e 618s 1..68 618s # Start of GDateTime tests 618s # Bug Reference: http://bugzilla.gnome.org/702674 618s ok 1 /GDateTime/invalid 618s ok 2 /GDateTime/add_days 618s ok 3 /GDateTime/add_full 618s ok 4 /GDateTime/add_hours 618s ok 5 /GDateTime/add_minutes 618s ok 6 /GDateTime/add_months 618s ok 7 /GDateTime/add_seconds 618s ok 8 /GDateTime/add_weeks 618s ok 9 /GDateTime/add_years 618s ok 10 /GDateTime/compare 618s ok 11 /GDateTime/diff 618s ok 12 /GDateTime/equal 618s ok 13 /GDateTime/get_day_of_week 618s ok 14 /GDateTime/get_day_of_month 618s ok 15 /GDateTime/get_day_of_year 618s ok 16 /GDateTime/get_hour 618s ok 17 /GDateTime/get_microsecond 618s ok 18 /GDateTime/get_minute 618s ok 19 /GDateTime/get_month 618s ok 20 /GDateTime/get_second 618s ok 21 /GDateTime/get_utc_offset 618s ok 22 /GDateTime/get_year 618s ok 23 /GDateTime/hash 618s ok 24 /GDateTime/new_from_unix 618s ok 25 /GDateTime/new_from_unix_utc 618s ok 26 /GDateTime/new_from_timeval 618s ok 27 /GDateTime/new_from_timeval_utc 618s ok 28 /GDateTime/new_from_iso8601 618s ok 29 /GDateTime/new_full 618s ok 30 /GDateTime/now 618s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 618s ok 31 /GDateTime/test-6-days-until-end-of-the-month 618s # %a -> expected: Sat 618s # %a -> actual: Sat 618s # %A -> expected: Saturday 618s # %A -> actual: Saturday 618s # %b -> expected: Oct 618s # %b -> actual: Oct 618s # %B -> expected: October 618s # %B -> actual: October 618s # %d -> expected: 24 618s # %d -> actual: 24 618s # %d -> expected: 01 618s # %d -> actual: 01 618s # %e -> expected: 24 618s # %e -> actual: 24 618s # %e -> expected:  1 618s # %e -> actual:  1 618s # %f -> expected: 001000 618s # %f -> actual: 001000 618s # %h -> expected: Oct 618s # %h -> actual: Oct 618s # %H -> expected: 00 618s # %H -> actual: 00 618s # %H -> expected: 15 618s # %H -> actual: 15 618s # %I -> expected: 12 618s # %I -> actual: 12 618s # %I -> expected: 12 618s # %I -> actual: 12 618s # %I -> expected: 03 618s # %I -> actual: 03 618s # %j -> expected: 297 618s # %j -> actual: 297 618s # %k -> expected:  0 618s # %k -> actual:  0 618s # %k -> expected: 13 618s # %k -> actual: 13 618s # %l -> expected: 12 618s # %l -> actual: 12 618s # %I -> expected: 12 618s # %I -> actual: 12 618s # %l -> expected:  1 618s # %l -> actual:  1 618s # %l -> expected: 10 618s # %l -> actual: 10 618s # %m -> expected: 10 618s # %m -> actual: 10 618s # %M -> expected: 00 618s # %M -> actual: 00 618s # %p -> expected: AM 618s # %p -> actual: AM 618s # %p -> expected: PM 618s # %p -> actual: PM 618s # %P -> expected: am 618s # %P -> actual: am 618s # %P -> expected: pm 618s # %P -> actual: pm 618s # %r -> expected: 12:00:00 AM 618s # %r -> actual: 12:00:00 AM 618s # %r -> expected: 01:13:13 PM 618s # %r -> actual: 01:13:13 PM 618s # %R -> expected: 00:00 618s # %R -> actual: 00:00 618s # %R -> expected: 13:13 618s # %R -> actual: 13:13 618s # %S -> expected: 00 618s # %S -> actual: 00 618s # %t -> expected: 618s # %t -> actual: 618s # %u -> expected: 6 618s # %u -> actual: 6 618s # %x -> expected: 10/24/09 618s # %x -> actual: 10/24/09 618s # %X -> expected: 00:00:00 618s # %X -> actual: 00:00:00 618s # %X -> expected: 13:14:15 618s # %X -> actual: 13:14:15 618s # %y -> expected: 09 618s # %y -> actual: 09 618s # %Y -> expected: 2009 618s # %Y -> actual: 2009 618s # %% -> expected: % 618s # %% -> actual: % 618s # % -> expected: 618s # % -> actual: 618s # %9 -> expected: (null) 618s # %9 -> actual: (null) 618s # %Z -> expected: UTC 618s # %Z -> actual: UTC 618s # %#Z %Z -> expected: utc UTC 618s # %#Z %Z -> actual: utc UTC 618s ok 32 /GDateTime/printf 618s # %a -> expected: 土 618s # %a -> actual: 土 618s # %A -> expected: 土曜日 618s # %A -> actual: 土曜日 618s # %b -> expected: 10月 618s # %b -> actual: 10月 618s # %B -> expected: 10月 618s # %B -> actual: 10月 618s # %c -> expected: 2009年10月24日 00時00分00秒 618s # %c -> actual: 2009年10月24日 00時00分00秒 618s # %C -> expected: 20 618s # %C -> actual: 20 618s # %d -> expected: 24 618s # %d -> actual: 24 618s # %d -> expected: 01 618s # %d -> actual: 01 618s # %e -> expected: 24 618s # %e -> actual: 24 618s # %h -> expected: 10月 618s # %h -> actual: 10月 618s # %H -> expected: 00 618s # %H -> actual: 00 618s # %H -> expected: 15 618s # %H -> actual: 15 618s # %I -> expected: 12 618s # %I -> actual: 12 618s # %I -> expected: 12 618s # %I -> actual: 12 618s # %I -> expected: 03 618s # %I -> actual: 03 618s # %j -> expected: 297 618s # %j -> actual: 297 618s # %k -> expected:  0 618s # %k -> actual:  0 618s # %k -> expected: 13 618s # %k -> actual: 13 618s # %l -> expected: 12 618s # %l -> actual: 12 618s # %I -> expected: 12 618s # %I -> actual: 12 618s # %l -> expected:  1 618s # %l -> actual:  1 618s # %l -> expected: 10 618s # %l -> actual: 10 618s # %m -> expected: 10 618s # %m -> actual: 10 618s # %M -> expected: 00 618s # %M -> actual: 00 618s # %p -> expected: 午前 618s # %p -> actual: 午前 618s # %p -> expected: 午後 618s # %p -> actual: 午後 618s # %P -> expected: 午前 618s # %P -> actual: 午前 618s # %P -> expected: 午後 618s # %P -> actual: 午後 618s # %r -> expected: 午前12時00分00秒 618s # %r -> actual: 午前12時00分00秒 618s # %r -> expected: 午後01時13分13秒 618s # %r -> actual: 午後01時13分13秒 618s # %R -> expected: 00:00 618s # %R -> actual: 00:00 618s # %R -> expected: 13:13 618s # %R -> actual: 13:13 618s # %S -> expected: 00 618s # %S -> actual: 00 618s # %t -> expected: 618s # %t -> actual: 618s # %u -> expected: 6 618s # %u -> actual: 6 618s # %x -> expected: 2009年10月24日 618s # %x -> actual: 2009年10月24日 618s # %X -> expected: 00時00分00秒 618s # %X -> actual: 00時00分00秒 618s # %X -> expected: 13時14分15秒 618s # %X -> actual: 13時14分15秒 618s # %y -> expected: 09 618s # %y -> actual: 09 618s # %Y -> expected: 2009 618s # %Y -> actual: 2009 618s # %% -> expected: % 618s # %% -> actual: % 618s # % -> expected: 618s # % -> actual: 618s # %9 -> expected: (null) 618s # %9 -> actual: (null) 618s # %Ec -> expected: 平成21年10月24日 00時00分00秒 618s # %Ec -> actual: 平成21年10月24日 00時00分00秒 618s # %EC -> expected: 平成 618s # %EC -> actual: 平成 618s # %Ex -> expected: 平成21年10月24日 618s # %Ex -> actual: 平成21年10月24日 618s # %EX -> expected: 00時00分00秒 618s # %EX -> actual: 00時00分00秒 618s # %Ey -> expected: 21 618s # %Ey -> actual: 21 618s # %EY -> expected: 平成21年 618s # %EY -> actual: 平成21年 618s ok 33 /GDateTime/non_utf8_printf 618s # ąśćł -> expected: ąśćł 618s # ąśćł -> actual: ąśćł 618s # %H∶%M -> expected: 23∶15 618s # %H∶%M -> actual: 23∶15 618s # %H∶%M -> expected: 23∶15 618s # %H∶%M -> actual: 23∶15 618s ok 34 /GDateTime/format_unrepresentable 618s ok 35 /GDateTime/format_iso8601 619s ok 36 /GDateTime/strftime 619s # %d -> expected: 01 619s # %d -> actual: 01 619s # %_d -> expected: 1 619s # %_d -> actual: 1 619s # %-d -> expected: 1 619s # %-d -> actual: 1 619s # %0d -> expected: 01 619s # %0d -> actual: 01 619s # %d -> expected: 21 619s # %d -> actual: 21 619s # %_d -> expected: 21 619s # %_d -> actual: 21 619s # %-d -> expected: 21 619s # %-d -> actual: 21 619s # %0d -> expected: 21 619s # %0d -> actual: 21 619s # %e -> expected:  1 619s # %e -> actual:  1 619s # %_e -> expected: 1 619s # %_e -> actual: 1 619s # %-e -> expected: 1 619s # %-e -> actual: 1 619s # %0e -> expected: 01 619s # %0e -> actual: 01 619s # %e -> expected: 21 619s # %e -> actual: 21 619s # %_e -> expected: 21 619s # %_e -> actual: 21 619s # %-e -> expected: 21 619s # %-e -> actual: 21 619s # %0e -> expected: 21 619s # %0e -> actual: 21 619s # %a -> expected: Thu 619s # %a -> actual: Thu 619s # %^a -> expected: THU 619s # %^a -> actual: THU 619s # %#a -> expected: THU 619s # %#a -> actual: THU 619s # %A -> expected: Thursday 619s # %A -> actual: Thursday 619s # %^A -> expected: THURSDAY 619s # %^A -> actual: THURSDAY 619s # %#A -> expected: THURSDAY 619s # %#A -> actual: THURSDAY 619s # %b -> expected: Jan 619s # %b -> actual: Jan 619s # %^b -> expected: JAN 619s # %^b -> actual: JAN 619s # %#b -> expected: JAN 619s # %#b -> actual: JAN 619s # %B -> expected: January 619s # %B -> actual: January 619s # %^B -> expected: JANUARY 619s # %^B -> actual: JANUARY 619s # %#B -> expected: JANUARY 619s # %#B -> actual: JANUARY 619s # %h -> expected: Jan 619s # %h -> actual: Jan 619s # %^h -> expected: JAN 619s # %^h -> actual: JAN 619s # %#h -> expected: JAN 619s # %#h -> actual: JAN 619s # %Z -> expected: UTC 619s # %Z -> actual: UTC 619s # %^Z -> expected: UTC 619s # %^Z -> actual: UTC 619s # %#Z -> expected: utc 619s # %#Z -> actual: utc 619s # %H -> expected: 01 619s # %H -> actual: 01 619s # %_H -> expected: 1 619s # %_H -> actual: 1 619s # %-H -> expected: 1 619s # %-H -> actual: 1 619s # %0H -> expected: 01 619s # %0H -> actual: 01 619s # %H -> expected: 21 619s # %H -> actual: 21 619s # %_H -> expected: 21 619s # %_H -> actual: 21 619s # %-H -> expected: 21 619s # %-H -> actual: 21 619s # %0H -> expected: 21 619s # %0H -> actual: 21 619s # %I -> expected: 01 619s # %I -> actual: 01 619s # %_I -> expected: 1 619s # %_I -> actual: 1 619s # %-I -> expected: 1 619s # %-I -> actual: 1 619s # %0I -> expected: 01 619s # %0I -> actual: 01 619s # %I -> expected: 11 619s # %I -> actual: 11 619s # %_I -> expected: 11 619s # %_I -> actual: 11 619s # %-I -> expected: 11 619s # %-I -> actual: 11 619s # %0I -> expected: 11 619s # %0I -> actual: 11 619s # %k -> expected:  1 619s # %k -> actual:  1 619s # %_k -> expected: 1 619s # %_k -> actual: 1 619s # %-k -> expected: 1 619s # %-k -> actual: 1 619s # %0k -> expected: 01 619s # %0k -> actual: 01 619s # %l -> expected:  1 619s # %l -> actual:  1 619s # %_l -> expected: 1 619s # %_l -> actual: 1 619s # %-l -> expected: 1 619s # %-l -> actual: 1 619s # %0l -> expected: 01 619s # %0l -> actual: 01 619s # %l -> expected: 11 619s # %l -> actual: 11 619s # %_l -> expected: 11 619s # %_l -> actual: 11 619s # %-l -> expected: 11 619s # %-l -> actual: 11 619s # %0l -> expected: 11 619s # %0l -> actual: 11 619s # %p -> expected: AM 619s # %p -> actual: AM 619s # %^p -> expected: AM 619s # %^p -> actual: AM 619s # %#p -> expected: am 619s # %#p -> actual: am 619s # %P -> expected: am 619s # %P -> actual: am 619s # %^P -> expected: AM 619s # %^P -> actual: AM 619s # %#P -> expected: am 619s # %#P -> actual: am 619s # %OH -> expected: ۲۳ 619s # %OH -> actual: ۲۳ 619s # %OI -> expected: ۱۱ 619s # %OI -> actual: ۱۱ 619s # %OM -> expected: ۰۰ 619s # %OM -> actual: ۰۰ 619s # %Om -> expected: ۰۷ 619s # %Om -> actual: ۰۷ 619s # %0Om -> expected: ۰۷ 619s # %0Om -> actual: ۰۷ 619s # %-Om -> expected: ۷ 619s # %-Om -> actual: ۷ 619s # %_Om -> expected: ۷ 619s # %_Om -> actual: ۷ 619s # %c -> expected: thu 01 jan 2009 00:00:00 utc 619s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 619s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 619s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 619s # %C -> expected: 20 619s # %C -> actual: 20 619s # %EC -> expected: 20 619s # %EC -> actual: 20 619s # %x -> expected: 02/01/09 619s # %x -> actual: 02/01/09 619s # %Ex -> expected: 02/01/09 619s # %Ex -> actual: 02/01/09 619s # %X -> expected: 01:02:03 619s # %X -> actual: 01:02:03 619s # %EX -> expected: 01:02:03 619s # %EX -> actual: 01:02:03 619s # %y -> expected: 09 619s # %y -> actual: 09 619s # %Ey -> expected: 09 619s # %Ey -> actual: 09 619s # %Y -> expected: 2009 619s # %Y -> actual: 2009 619s # %EY -> expected: 2009 619s # %EY -> actual: 2009 619s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 619s # Bug Reference: http://bugzilla.gnome.org/749206 619s # %B -> expected: January 619s # %B -> actual: January 619s # %OB -> expected: February 619s # %OB -> actual: February 619s # %b -> expected: Mar 619s # %b -> actual: Mar 619s # %Ob -> expected: Apr 619s # %Ob -> actual: Apr 619s # %h -> expected: May 619s # %h -> actual: May 619s # %Oh -> expected: Jun 619s # %Oh -> actual: Jun 619s # %B -> expected: Juli 619s # %B -> actual: Juli 619s # %OB -> expected: August 619s # %OB -> actual: August 619s # %b -> expected: Sep 619s # %b -> actual: Sep 619s # %Ob -> expected: Okt 619s # %Ob -> actual: Okt 619s # %h -> expected: Nov 619s # %h -> actual: Nov 619s # %Oh -> expected: Dez 619s # %Oh -> actual: Dez 619s # %B -> expected: enero 619s # %B -> actual: enero 619s # %OB -> expected: febrero 619s # %OB -> actual: febrero 619s # %b -> expected: mar 619s # %b -> actual: mar 619s # %Ob -> expected: abr 619s # %Ob -> actual: abr 619s # %h -> expected: may 619s # %h -> actual: may 619s # %Oh -> expected: jun 619s # %Oh -> actual: jun 619s # %B -> expected: juillet 619s # %B -> actual: juillet 619s # %OB -> expected: août 619s # %OB -> actual: août 619s # %b -> expected: sept. 619s # %b -> actual: sept. 619s # %Ob -> expected: oct. 619s # %Ob -> actual: oct. 619s # %h -> expected: nov. 619s # %h -> actual: nov. 619s # %Oh -> expected: déc. 619s # %Oh -> actual: déc. 619s # %B -> expected: Ιανουαρίου 619s # %B -> actual: Ιανουαρίου 619s # %B -> expected: Φεβρουαρίου 619s # %B -> actual: Φεβρουαρίου 619s # %B -> expected: Μαρτίου 619s # %B -> actual: Μαρτίου 619s # %OB -> expected: Απρίλιος 619s # %OB -> actual: Απρίλιος 619s # %OB -> expected: Μάιος 619s # %OB -> actual: Μάιος 619s # %OB -> expected: Ιούνιος 619s # %OB -> actual: Ιούνιος 619s # %b -> expected: Ιουλ 619s # %b -> actual: Ιουλ 619s # %Ob -> expected: Αύγ 619s # %Ob -> actual: Αύγ 619s # %B -> expected: svibnja 619s # %B -> actual: svibnja 619s # %B -> expected: lipnja 619s # %B -> actual: lipnja 619s # %B -> expected: srpnja 619s # %B -> actual: srpnja 619s # %OB -> expected: Kolovoz 619s # %OB -> actual: kolovoz 619s # %OB -> expected: Rujan 619s # %OB -> actual: rujan 619s # %OB -> expected: Listopad 619s # %OB -> actual: listopad 619s # %b -> expected: Stu 619s # %b -> actual: stu 619s # %Ob -> expected: Pro 619s # %Ob -> actual: pro 619s # %B -> expected: sausio 619s # %B -> actual: sausio 619s # %B -> expected: vasario 619s # %B -> actual: vasario 619s # %B -> expected: kovo 619s # %B -> actual: kovo 619s # %OB -> expected: balandis 619s # %OB -> actual: balandis 619s # %OB -> expected: gegužė 619s # %OB -> actual: gegužė 619s # %OB -> expected: birželis 619s # %OB -> actual: birželis 619s # %b -> expected: liep. 619s # %b -> actual: liep. 619s # %Ob -> expected: rugp. 619s # %Ob -> actual: rugp. 619s # %B -> expected: maja 619s # %B -> actual: maja 619s # %B -> expected: czerwca 619s # %B -> actual: czerwca 619s # %B -> expected: lipca 619s # %B -> actual: lipca 619s # %OB -> expected: sierpień 619s # %OB -> actual: sierpień 619s # %OB -> expected: wrzesień 619s # %OB -> actual: wrzesień 619s # %OB -> expected: październik 619s # %OB -> actual: październik 619s # %b -> expected: lis 619s # %b -> actual: lis 619s # %Ob -> expected: gru 619s # %Ob -> actual: gru 619s # %B -> expected: января 619s # %B -> actual: января 619s # %B -> expected: февраля 619s # %B -> actual: февраля 619s # %B -> expected: марта 619s # %B -> actual: марта 619s # %OB -> expected: Апрель 619s # %OB -> actual: Апрель 619s # %OB -> expected: Май 619s # %OB -> actual: Май 619s # %OB -> expected: Июнь 619s # %OB -> actual: Июнь 619s # %b -> expected: июл 619s # %b -> actual: июл 619s # %Ob -> expected: авг 619s # %Ob -> actual: авг 619s # %b -> expected: мая 619s # %b -> actual: мая 619s # %Ob -> expected: май 619s # %Ob -> actual: май 619s ok 38 /GDateTime/month_names 619s ok 39 /GDateTime/to_local 619s ok 40 /GDateTime/to_unix 619s ok 41 /GDateTime/to_timeval 619s ok 42 /GDateTime/to_utc 619s ok 43 /GDateTime/now_utc 619s ok 44 /GDateTime/dst 619s # Bug Reference: http://bugzilla.gnome.org/642935 619s ok 45 /GDateTime/test_z 619s # Executing: glib/gdatetime.test 619s ok 46 /GDateTime/test-all-dates 619s # slow test /GDateTime/test-all-dates executed in 0.54 secs 619s ok 47 /GDateTime/unix_usec 619s # Start of new_from_unix tests 619s # Bug Reference: http://bugzilla.gnome.org/782089 619s ok 48 /GDateTime/new_from_unix/overflow 619s # End of new_from_unix tests 619s # Start of new_from_timeval tests 619s # Bug Reference: http://bugzilla.gnome.org/782089 619s # Maximum supported GTimeVal.tv_sec = 253402300799 619s ok 49 /GDateTime/new_from_timeval/overflow 619s # End of new_from_timeval tests 619s # Start of new_from_iso8601 tests 619s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 619s # Vector 0: 1990-11-01T10:21:17Z 619s # Vector 1: 19901101T102117Z 619s # Vector 2: 1970-01-01T00:00:17.12Z 619s # Vector 3: 1970-01-01T00:00:17.1234Z 619s # Vector 4: 1970-01-01T00:00:17.123456Z 619s # Vector 5: 1980-02-22T12:36:00+02:00 619s # Vector 6: 1990-12-31T15:59:60-08:00 619s # Vector 7: 619s # Vector 8: x 619s # Vector 9: 123x 619s # Vector 10: 2001-10+x 619s # Vector 11: 1980-02-22T 619s # Vector 12: 2001-10-08Tx 619s # Vector 13: 2001-10-08T10:11x 619s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 619s # Vector 15: 1980-02-22T10:36:00Zulu 619s # Vector 16: 2T0+819855292164632335 619s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 619s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 619s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 619s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 619s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 619s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 619s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 619s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 619s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 619s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 619s # Vector 27: 20180803T140805.446178377+0100 619s # Vector 28: 21474836480803T140805.446178377+0100 619s # Vector 29: 20181303T140805.446178377+0100 619s # Vector 30: 20180003T140805.446178377+0100 619s # Vector 31: 20180800T140805.446178377+0100 619s # Vector 32: 20180832T140805.446178377+0100 619s # Vector 33: 20180803T240805.446178377+0100 619s # Vector 34: 20180803T146005.446178377+0100 619s # Vector 35: 20180803T140863.446178377+0100 619s # Vector 36: 20180803T140805.446178377+10000 619s # Vector 37: -0005-01-01T00:00:00Z 619s # Vector 38: 2018-08-06 619s # Vector 39: 20180803T140805,446178377+0100 619s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 619s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 619s # Vector 42: 1990-11-01T10:21:17 619s # Vector 43: 1719W462 407777-07 619s # Vector 44: 4011090 260528Z 619s # Vector 45: 0000W011 228214-22 619s ok 50 /GDateTime/new_from_iso8601/2 619s # End of new_from_iso8601 tests 619s # Start of format_mixed tests 619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 619s # %b -> expected: mar 619s # %b -> actual: Mar 619s # %B -> expected: march 619s # %B -> actual: March 619s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 619s # %b -> expected: mar 619s # %b -> actual: Mar 619s # %B -> expected: march 619s # %B -> actual: March 619s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 619s # %b -> expected: Mär 619s # %b -> actual: Mär 619s # %B -> expected: März 619s # %B -> actual: März 619s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 619s # %b -> expected: Mär 619s # %b -> actual: Mär 619s # %B -> expected: März 619s # %B -> actual: März 619s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 619s # End of format_mixed tests 619s # Start of strftime tests 619s # %r -> expected: (null) 619s # %r -> actual: (null) 619s ok 55 /GDateTime/strftime/error_handling 619s # End of strftime tests 619s # Start of eras tests 619s # %Ec -> expected: 令和05年06月01日 00時00分00秒 619s # %Ec -> actual: 令和05年06月01日 00時00分00秒 619s # %EC -> expected: 令和 619s # %EC -> actual: 令和 619s # %Ex -> expected: 令和05年06月01日 619s # %Ex -> actual: 令和05年06月01日 619s # %EX -> expected: 00時00分00秒 619s # %EX -> actual: 00時00分00秒 619s # %Ey -> expected: 05 619s # %Ey -> actual: 05 619s # %EY -> expected: 令和05年 619s # %EY -> actual: 令和05年 619s # %Ec -> expected: 平成31年04月30日 00時00分00秒 619s # %Ec -> actual: 平成31年04月30日 00時00分00秒 619s # %EC -> expected: 平成 619s # %EC -> actual: 平成 619s # %Ex -> expected: 平成31年04月30日 619s # %Ex -> actual: 平成31年04月30日 619s # %EX -> expected: 00時00分00秒 619s # %EX -> actual: 00時00分00秒 619s # %Ey -> expected: 31 619s # %Ey -> actual: 31 619s # %EY -> expected: 平成31年 619s # %EY -> actual: 平成31年 619s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 619s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 619s # %EC -> expected: 昭和 619s # %EC -> actual: 昭和 619s # %Ex -> expected: 昭和元年12月25日 619s # %Ex -> actual: 昭和元年12月25日 619s # %EX -> expected: 00時00分00秒 619s # %EX -> actual: 00時00分00秒 619s # %Ey -> expected: 01 619s # %Ey -> actual: 01 619s # %EY -> expected: 昭和元年 619s # %EY -> actual: 昭和元年 619s ok 56 /GDateTime/eras/japan 619s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 619s # Vector 0: 619s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 619s # 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年 619s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 619s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 619s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 619s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 619s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 619s # Vector 8: + 619s # Vector 9: +: 619s # Vector 10: +:: 619s # Vector 11: +:200 619s # Vector 12: +:2nonsense 619s # Vector 13: +:2nonsense: 619s # Vector 14: +:2: 619s # Vector 15: +:2:: 619s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 619s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 619s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 619s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 619s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 619s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 619s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 619s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 619s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 619s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 619s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 619s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 619s # Vector 28: +:2:2020/01/01 619s # Vector 29: +:2:2020/01/01: 619s # Vector 30: +:2:2020/01/01:: 619s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 619s # Vector 32: +:2:2020/01/01:+* 619s # Vector 33: +:2:2020/01/01:+*: 619s # Vector 34: +:2:2020/01/01:+*:: 619s # Vector 35: +:2:2020/01/01:+*:令和 619s # Vector 36: +:2:2020/01/01:+*:令和: 619s # Vector 37: +:2:2020/01/01:+*:令和:; 619s ok 58 /GDateTime/eras/parsing 619s # End of eras tests 619s # End of GDateTime tests 619s # Start of GTimeZone tests 619s ok 59 /GTimeZone/find-interval 619s ok 60 /GTimeZone/adjust-time 619s ok 61 /GTimeZone/no-header 619s ok 62 /GTimeZone/no-header-identifier 619s ok 63 /GTimeZone/posix-parse 619s # Bug Reference: http://bugzilla.gnome.org/697715 619s ok 64 /GTimeZone/floating-point 619s # System time zone identifier: Etc/UTC 619s ok 65 /GTimeZone/identifier 619s # Vector 0: -158400 619s # Vector 1: -10000 619s # Vector 2: -3600 619s # Vector 3: -61 619s # Vector 4: -60 619s # Vector 5: -59 619s # Vector 6: 0 619s # Vector 7: 59 619s # Vector 8: 60 619s # Vector 9: 61 619s # Vector 10: 3600 619s # Vector 11: 10000 619s # Vector 12: 158400 619s ok 66 /GTimeZone/new-offset 619s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 619s ok 67 /GTimeZone/parse-rfc8536 619s # /GTimeZone/caching summary: GTimeZone instances are cached 619s ok 68 /GTimeZone/caching 619s # End of GTimeZone tests 619s ok - glib/gdatetime.test 619s # Running test: glib/once.test 619s TAP version 14 619s # random seed: R02S884e776cdb81f6bc563593ebe1f32be4 619s 1..5 619s # Start of once tests 619s # /once/single-threaded summary: Test g_once() usage from a single thread 619s ok 1 /once/single-threaded 619s # /once/multi-threaded summary: Test g_once() usage from multiple threads 619s ok 2 /once/multi-threaded 619s # End of once tests 619s # Start of once-init tests 619s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 619s ok 3 /once-init/single-threaded 619s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 619s ok 4 /once-init/multi-threaded 619s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 619s ok 5 /once-init/string 619s # End of once-init tests 619s ok - glib/once.test 619s # Running test: glib/callable-info.test 619s TAP version 14 619s # random seed: R02S69245a88b373b4ae5e503124dd410d5e 619s 1..6 619s # Start of callable-info tests 619s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/home 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/cache 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/system-config2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/config 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/system-data2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/data 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/state 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_ZNDJE3/callable-info/sync-function/.dirs/runtime 619s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 619s ok 1 /callable-info/sync-function 619s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/home 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/cache 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/system-config2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/config 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/system-data2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/data 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/state 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_ZNDJE3/callable-info/async-function/.dirs/runtime 619s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 619s ok 2 /callable-info/async-function 619s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/home 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/cache 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/system-config2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/config 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/system-data2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/data 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/state 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_ZNDJE3/callable-info/is-method/.dirs/runtime 619s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 619s ok 3 /callable-info/is-method 619s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/home 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/cache 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/system-config2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/config 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/system-data2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/data 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/state 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_ZNDJE3/callable-info/static-method/.dirs/runtime 619s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 619s ok 4 /callable-info/static-method 619s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/home 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/cache 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/system-config2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/config 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/system-data2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/data 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/state 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_ZNDJE3/callable-info/static-vfunc/.dirs/runtime 619s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 619s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 619s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 619s # Start of platform tests 619s # Start of unix tests 619s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/home 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/cache 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/system-config2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/config 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/system-data2 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/data 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/state 619s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_ZNDJE3/callable-info/platform/unix/is-method/.dirs/runtime 619s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 619s # Checking DesktopAppInfo in Gio 619s # Checking DesktopAppInfo in GioUnix 619s ok 6 /callable-info/platform/unix/is-method 619s # End of unix tests 619s # End of platform tests 619s # End of callable-info tests 619s TAP version 14 619s # random seed: R02S3efe0510764862defd6af57cf380e5a8 619s 1..1 619s # Start of png-thumbs tests 619s ok 1 /png-thumbs/validity 619s # End of png-thumbs tests 619s TAP version 14 619s # random seed: R02S48a9451410de452c1b2feac36cc4d101 619s 1..8 619s # Start of g-file tests 619s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 619s ok 1 /g-file/test_g_file_new_null 619s ok 2 /g-file/test_g_file_new_for_path 619s ok 3 /g-file/test_g_file_new_for_uri 619s ok 4 /g-file/test_g_file_dup 619s ok 5 /g-file/test_g_file_get_parse_name_utf8 619s file:///tmp/test-tmp-glib_g-file.test-KUTJE3 619s file:///tmp 619s file:///tmp 619s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 619s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 619s ok 6 /g-file/test_g_file_new_for_commandline_arg 619s /dir1 /dir1/dir2/dir3/ 619s /dir1/ /dir1/dir2/dir3/ 619s /dir1 /dir1/dir2/dir3 619s /dir1/ /dir1/dir2/dir3 619s /tmp/ /something/ 619s /dir1/dir2 /dir1/ 619s //dir1/new //dir1/new/dir2/dir3 619s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 619s file:///dir1 file:///dir1/dir2/dir3/ 619s file:///dir1/ file:///dir1/dir2/dir3/ 619s file:///dir1 file:///dir1/dir2/dir3 619s file:///dir1/ file:///dir1/dir2/dir3 619s file:///tmp/ file:///something/ 619s file:///dir1/dir2 file:///dir1/ 619s file:////dir1/new file:////dir1/new/dir2/dir3 619s 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 619s ok 7 /g-file/test_g_file_has_prefix 619s ok 8 /g-file/test_g_file_get_parent_child 619s # End of g-file tests 619s TAP version 14 619s # random seed: R02S0667550093a7829bd5623bb1e03dc907 619s 1..6 619s # Start of g-file-info tests 619s ok 1 /g-file-info/test_g_file_info 619s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 619s ok - glib/callable-info.test 619s # Running test: glib/thumbnail-verification.test 619s ok - glib/thumbnail-verification.test 619s # Running test: glib/g-file.test 619s ok - glib/g-file.test 619s # Running test: glib/g-file-info.test 619s ok - glib/g-file-info.test 619s # Running test: glib/socket-service.test 619s ok - glib/socket-service.test 619s # Running test: glib/signals-refcount1.test 619s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 619s ok 2 /g-file-info/xattrs 619s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 619s ok 3 /g-file-info/set-modified-date-time-precision 619s # Start of test_g_file_info tests 619s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 619s ok 4 /g-file-info/test_g_file_info/modification-time 619s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 619s ok 5 /g-file-info/test_g_file_info/access-time 619s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 619s ok 6 /g-file-info/test_g_file_info/creation-time 619s # End of test_g_file_info tests 619s # End of g-file-info tests 619s TAP version 14 619s # random seed: R02S73b62bf06755aa5b1ddfd7d008658d7e 619s 1..4 619s # Start of socket-service tests 619s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 619s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x568f3fd0d230 and GSocketClientAsyncConnectData 0x568f3fd07ef0 619s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 619s ok 1 /socket-service/start-stop 619s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x568f3fd112c0 and GSocketClientAsyncConnectData 0x568f3fd10f20 619s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 619s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 619s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x568f3fd11240 for GSocketClientAsyncConnectData 0x568f3fd07ef0 619s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 619s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 619s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 619s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 619s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 619s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x568f3fd11240 for GSocketClientAsyncConnectData 0x568f3fd10f20 619s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 619s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 619s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 619s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 619s ok 2 /socket-service/read_write_async 619s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x568f3fd112c0 and GSocketClientAsyncConnectData 0x568f3fd149e0 619s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 619s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 619s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x568f3fd13e10 for GSocketClientAsyncConnectData 0x568f3fd149e0 619s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 619s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 619s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 619s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 619s ok 3 /socket-service/read_writev_async 619s # Start of threaded tests 619s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 619s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x568f3fd05a60 and GSocketClientAsyncConnectData 0x568f3fd10f20 619s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 619s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 619s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x568f3fd15240 for GSocketClientAsyncConnectData 0x568f3fd10f20 619s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 619s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 619s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 619s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 619s ok 4 /socket-service/threaded/712570 619s # End of threaded tests 619s # End of socket-service tests 619s TAP version 14 619s # random seed: R02S5339c15839872bcf91ac75d6303853de 619s 1..1 619s # Start of gobject tests 619s # Start of refcount tests 619s # init 0x5bbc7e954490 619s # 619s # init 0x5bbc7e94c580 619s # 624s # Executing: glib/signals-refcount1.test 624s # dispose 0x5bbc7e954490! 624s # 624s # dispose 0x5bbc7e94c580! 624s # 624s ok 1 /gobject/refcount/signals 624s # slow test /gobject/refcount/signals executed in 5.00 secs 624s # End of refcount tests 624s # End of gobject tests 624s ok - glib/signals-refcount1.test 624s # Running test: glib/deftype.test 624s ok - glib/deftype.test 624s # Running test: glib/gdbus-connection-loss.test 624s TAP version 14 624s # random seed: R02Sc116404be5a7543c2fda68db0aa119ab 624s 1..1 624s # Start of gdbus tests 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_M6SJE3/gdbus/connection-loss/.dirs/runtime 624s ok 1 /gdbus/connection-loss 624s # End of gdbus tests 624s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 624s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 624s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 624s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 624s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 624s ok - glib/gdbus-connection-loss.test 624s # Running test: glib/gutils-user-database.test 624s ok - glib/gutils-user-database.test 624s TAP version 14 624s # random seed: R02S98ff705ab1449fe1364659fa44f0f0e6 624s 1..1 624s # Start of gutils tests 624s ok 1 /gutils/get_user_database_entry 624s # End of gutils tests 624s # Running test: glib/refstring.test 624s TAP version 14 624s # random seed: R02Sb8e53baea5fd6642ee54aeb2628f3f3c 624s 1..8 624s # Start of refstring tests 624s # s = 'hello, world' (0x5c81b266c2b0) 624s ok 1 /refstring/base 624s ok 2 /refstring/length 624s ok 3 /refstring/length-auto 624s ok 4 /refstring/length-nuls 624s # s = 'hello, world' (0x5c81b266c150) 624s # p = s = 'hello, world' (0x5c81b266c150) 624s # releasing p[0x5c81b266c150] ('hello, world') 624s # p = 'goodbye, world' (0x5c81b266c2b0) 624s # releasing p[0x5c81b266c2b0] ('goodbye, world') 624s # releasing s[0x5c81b266c150] ('hello, world') 624s ok 5 /refstring/intern 624s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 624s ok 6 /refstring/hash_equal 624s # /refstring/equal summary: Test g_ref_string_equal() standalone 624s ok 7 /refstring/equal 624s ok - glib/refstring.test 624s ok 8 /refstring/intern-thread-safety 624s # End of refstring tests 624s # Running test: glib/gdbus-export.test 624s TAP version 14 624s # random seed: R02Sd8561a5efc7cf77916ab95d107817680 624s 1..7 624s # Start of gdbus tests 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration/.dirs/runtime 624s ok 1 /gdbus/object-registration 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures/.dirs/runtime 624s ok 2 /gdbus/object-registration-with-closures 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/object-registration-with-closures2/.dirs/runtime 624s ok 3 /gdbus/object-registration-with-closures2 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/registered-interfaces/.dirs/runtime 624s ok 4 /gdbus/registered-interfaces 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/async-properties/.dirs/runtime 624s ok 5 /gdbus/async-properties 624s # Start of threaded-unregistration tests 624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/home 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/cache 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/system-config2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/config 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/system-data2 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/data 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/state 624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/object/.dirs/runtime 624s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 624s # /gdbus/threaded-unregistration/object summary: Test that object/subtree unregistration from one thread doesn’t cause problems when racing with method callbacks in another thread for that object or subtree 625s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (0 iterations with unregistration first, 1000 with call first); skipping test 625s # slow test /gdbus/threaded-unregistration/object executed in 0.81 secs 625s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/home 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/cache 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/config 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/data 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/state 625s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_FL4ZE3/gdbus/threaded-unregistration/subtree/.dirs/runtime 625s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 625s # /gdbus/threaded-unregistration/subtree summary: Test that object/subtree unregistration from one thread doesn’t cause problems when racing with method callbacks in another thread for that object or subtree 626s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (0 iterations with unregistration first, 1000 with call first); skipping test 626s # slow test /gdbus/threaded-unregistration/subtree executed in 0.80 secs 626s # End of threaded-unregistration tests 626s # End of gdbus tests 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s ok - glib/gdbus-export.test 626s # Running test: glib/gdbus-sasl.test 626s TAP version 14 626s # random seed: R02Sb61e007e60bd5a161e89d2f78f6c04f4 626s 1..1 626s # Start of gdbus tests 626s # Start of sasl tests 626s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/home 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/cache 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/system-config2 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/config 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/system-data2 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/data 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/state 626s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_1VASE3/gdbus/sasl/server/.dirs/runtime 626s # New handshake: EXTERNAL with incorrect initial response 626s # C:“AUTH EXTERNAL 30” 626s # Expect: /^REJECTED.*$/ 626s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 626s # New handshake: EXTERNAL without initial response, failing to authenticate 626s ok - glib/gdbus-sasl.test 626s # Running test: glib/utils-c-89.test 626s # C:“AUTH EXTERNAL” 626s # Expect: /^DATA$/ 626s # S:“DATA” 626s # C:“DATA 30” 626s # Expect: /^REJECTED.*$/ 626s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 626s # New handshake: EXTERNAL with initial response 626s # C:“AUTH EXTERNAL 31303030” 626s # Expect: /^OK [0-9a-f]+$/ 626s # S:“OK f4fd69495d5b5a39f52650bd68f4215b” 626s # New handshake: EXTERNAL without initial response 626s # C:“AUTH EXTERNAL” 626s # Expect: /^DATA$/ 626s # S:“DATA” 626s # C:“DATA 31303030” 626s # Expect: /^OK [0-9a-f]+$/ 626s # S:“OK f4fd69495d5b5a39f52650bd68f4215b” 626s # New handshake: EXTERNAL with empty authorization identity 626s # C:“AUTH EXTERNAL” 626s # Expect: /^DATA$/ 626s # S:“DATA” 626s # C:“DATA” 626s # Expect: /^OK [0-9a-f]+$/ 626s # S:“OK f4fd69495d5b5a39f52650bd68f4215b” 626s # New handshake: EXTERNAL with empty authorization identity and whitespace 626s # C:“AUTH EXTERNAL” 626s # Expect: /^DATA$/ 626s # S:“DATA” 626s # C:“DATA ” 626s # Expect: /^OK [0-9a-f]+$/ 626s # S:“OK f4fd69495d5b5a39f52650bd68f4215b” 626s ok 1 /gdbus/sasl/server 626s # End of sasl tests 626s # End of gdbus tests 626s TAP version 14 626s # random seed: R02S10192c6f75ac7346173e1213bdbd5c5c 626s 1..41 626s # Start of utils tests 626s ok 1 /utils/language-names 626s # Testing locale ‘en’ 626s # Testing locale ‘sr@latin’ 626s # Testing locale ‘fr_BE’ 626s # Testing locale ‘sr_SR@latin’ 626s # Testing locale ‘sr_SR@latin.UTF-8’ 626s # Testing locale ‘sr@latin_invalid’ 626s # Testing locale ‘sr.UTF-8@latin’ 626s # Testing locale ‘sr.UTF-8_latin’ 626s # Testing locale ‘sr.UTF-8@latin_invalid’ 626s ok 2 /utils/locale-variants 626s ok 3 /utils/version 626s ok 4 /utils/appname 626s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 626s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 626s ok 5 /utils/prgname-thread-safety 626s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 626s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 626s ok 6 /utils/tmpdir 626s ok 7 /utils/basic_bits 626s ok 8 /utils/bits 626s ok 9 /utils/swap 626s ok 10 /utils/find-program 626s ok 11 /utils/find-program-for-path 626s ok 12 /utils/debug 626s ok 13 /utils/codeset 626s ok 14 /utils/codeset2 626s ok - glib/utils-c-89.test 626s # Running test: glib/cache.test 626s ok - glib/cache.test 626s # Running test: glib/relation.test 626s ok 15 /utils/console-charset 626s ok 16 /utils/gettext 626s ok 17 /utils/username 626s ok 18 /utils/realname 626s ok 19 /utils/hostname 626s ok 20 /utils/xdgdirs 626s ok 21 /utils/specialdir 626s # NAME: Ubuntu 626s ok 22 /utils/os-info 626s ok 23 /utils/clear-pointer 626s ok 24 /utils/clear-pointer-cast 626s ok 25 /utils/take-pointer 626s ok 26 /utils/clear-source 626s ok 27 /utils/misc-mem 626s # /utils/aligned-mem summary: Aligned memory allocator 626s # Alignment must not be zero 626s # Alignment must be a power of two 626s # Alignment must be a multiple of sizeof(void*) 626s ok 28 /utils/aligned-mem 626s # /utils/free-sized summary: Check that g_free_sized() works 626s ok 29 /utils/free-sized 626s ok 30 /utils/nullify 626s ok 31 /utils/atexit 626s ok 32 /utils/check-setuid 626s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 626s ok 33 /utils/int-limits 626s ok 34 /utils/clear-list 626s ok 35 /utils/clear-slist 626s ok 36 /utils/steal-handle-id 626s # Start of specialdir tests 626s ok 37 /utils/specialdir/desktop 626s # End of specialdir tests 626s # Start of clear-pointer tests 626s ok 38 /utils/clear-pointer/side-effects 626s # End of clear-pointer tests 626s # Start of aligned-mem tests 626s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 626s ok 39 /utils/aligned-mem/alignment 626s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 626s ok 40 /utils/aligned-mem/zeroed 626s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 626s ok 41 /utils/aligned-mem/free-sized 626s # Start of subprocess tests 626s # End of subprocess tests 626s # End of aligned-mem tests 626s # End of utils tests 626s TAP version 14 626s # random seed: R02S2248d87038bac68141d3eba3f30f336a 626s 1..1 626s # Start of cache tests 626s ok 1 /cache/basic 626s # End of cache tests 626s TAP version 14 626s # random seed: R02Sdba8ca68246fdbc2ce1604c53e4ea0c8 626s 1..1 626s # Start of glib tests 626s ok 1 /glib/relation 626s # End of glib tests 626s ok - glib/relation.test 626s # Running test: glib/charset.test 626s TAP version 14 626s # random seed: R02Sb4859696c2f537b1f2e3b3e1f4358ae8 626s 1..2 626s # Start of charset tests 626s # Test 0 626s # Test 1 626s # Test 2 626s # Test 3 626s ok 1 /charset/language_names_with_category 626s ok 2 /charset/language_names_with_category_async 626s # End of charset tests 626s ok - glib/charset.test 626s # Running test: glib/defaultvalue.test 626s TAP version 14 626s # random seed: R02Sb1a4d76e286b447e0c7c20f594a8de8d 626s 1..84 626s # Start of Default Values tests 626s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 626s ok 2 /Default Values/GAppLaunchContext 626s ok 3 /Default Values/GApplicationCommandLine 626s # skipping GApplication:is-remote 626s ok 4 /Default Values/GApplication 626s ok 5 /Default Values/GBinding # SKIP mandatory construct params 626s ok 6 /Default Values/GBindingGroup 626s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 626s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 626s ok 9 /Default Values/GBytesIcon 626s ok 10 /Default Values/GCancellable 626s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 626s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 626s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 626s ok 14 /Default Values/GCredentials 626s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 626s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 626s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 626s ok 18 /Default Values/GDBusAuthObserver 626s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 626s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 626s ok 21 /Default Values/GDBusMessage 626s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 626s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 626s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 626s ok 25 /Default Values/GDBusObjectProxy 626s ok 26 /Default Values/GDBusObjectSkeleton 626s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 626s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 626s ok 29 /Default Values/GEmblem 626s ok 30 /Default Values/GEmblemedIcon 626s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 626s ok 32 /Default Values/GFileInfo 626s ok 33 /Default Values/GFileInputStream 626s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 626s ok 35 /Default Values/GFileOutputStream 626s ok 36 /Default Values/GFilenameCompleter 626s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 626s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 626s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 626s ok 40 /Default Values/GInitiallyUnowned 626s ok 41 /Default Values/GIOModule 626s ok 42 /Default Values/GListStore 626s ok 43 /Default Values/GMemoryInputStream 626s ok 44 /Default Values/GMemoryOutputStream 626s ok 45 /Default Values/GMenu 626s ok 46 /Default Values/GMenuItem 626s ok 47 /Default Values/GMountOperation 626s ok 48 /Default Values/GNativeSocketAddress 626s ok 49 /Default Values/GNetworkAddress 626s ok 50 /Default Values/GNetworkService 626s ok 51 /Default Values/GNotification 626s ok 52 /Default Values/GObject 626s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 626s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 626s # skipping GProxyAddressEnumerator:proxy-resolver 626s ok 54 /Default Values/GProxyAddressEnumerator 626s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 626s ok 56 /Default Values/GSettings # SKIP mandatory construct params 626s ok 57 /Default Values/GSignalGroup 626s ok 58 /Default Values/GSimpleAction 626s ok 59 /Default Values/GSimpleActionGroup 626s ok 60 /Default Values/GSimpleAsyncResult 626s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 626s ok 62 /Default Values/GSimplePermission 626s ok 63 /Default Values/GSimpleProxyResolver 626s # skipping GSocketClient:proxy-resolver 626s ok 64 /Default Values/GSocketClient 626s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 626s ok 66 /Default Values/GSocket # SKIP initialization failed 626s ok 67 /Default Values/GSocketListener 626s ok 68 /Default Values/GSocketService 626s ok 69 /Default Values/GSubprocess # SKIP initialization failed 626s ok 70 /Default Values/GSubprocessLauncher 626s # GLib-GIO-DEBUG: GTask 0x55e60ed53ad0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 626s ok 71 /Default Values/GTask 626s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 626s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 626s ok 74 /Default Values/GTestDBus 626s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 626s ok 76 /Default Values/GThreadedSocketService 626s ok 77 /Default Values/GTlsInteraction 626s ok 78 /Default Values/GTlsPassword 626s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 626s ok 80 /Default Values/GUnixFDList 626s ok 81 /Default Values/GVfs 626s ok 82 /Default Values/GVolumeMonitor 626s ok 83 /Default Values/GZlibCompressor 626s ok 84 /Default Values/GZlibDecompressor 626s # End of Default Values tests 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 626s TAP version 14 626s # random seed: R02S20de6c8512c1809e5d16e28fa11b1bf9 626s 1..24 626s # Start of uri tests 626s ok 1 /uri/file-to-uri 626s ok 2 /uri/file-from-uri 626s ok 3 /uri/file-roundtrip 626s ok 4 /uri/list 626s # Test 0: %2Babc %4F 626s # Test 1: %2Babc %4F 626s # Test 2: %00abc %4F 626s # Test 3: /cursors/none.png 626s # Test 4: /cursors%2fbad-subdir/none.png 626s # Test 5: %0 626s # Test 6: %ra 626s # Test 7: %2r 626s # Test 8: Timm Bäder 626s # Test 9: (null) 626s ok 5 /uri/unescape-string 626s ok 6 /uri/unescape-segment 626s # Test 0: abcdefgABCDEFG._~ 626s # Test 1: :+ \\?# 626s # Test 2: a+b:c 626s # Test 3: a+b:c\303\234 626s # Test 4: \374;\322 626s # Test 5: \303\261\303( 626s ok 7 /uri/escape-string 626s ok 8 /uri/escape-bytes 626s ok 9 /uri/scheme 626s ok 10 /uri/build 626s ok 11 /uri/split 626s ok 12 /uri/is_valid 626s ok 13 /uri/to-string 626s ok 14 /uri/join 626s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 626s # Combination 0 626s # Combination 1 626s # Combination 2 626s # Combination 3 626s # Combination 4 626s # Combination 5 626s # Combination 6 626s # Combination 7 626s # Combination 8 626s # Combination 9 626s # Combination 10 626s # Combination 11 626s # Combination 12 626s # Combination 13 626s # Combination 14 626s # Combination 15 626s # Combination 16 626s # Combination 17 626s # Combination 18 626s # Combination 19 626s # Combination 20 626s # Combination 21 626s # Combination 22 626s # Combination 23 626s # Combination 24 626s # Combination 25 626s # Combination 26 626s # Combination 27 626s # Combination 28 626s # Combination 29 626s # Combination 30 626s # Combination 31 626s # Combination 32 626s # Combination 33 626s # Combination 34 626s # Combination 35 626s # Combination 36 626s # Combination 37 626s # Combination 38 626s # Combination 39 626s # Combination 40 626s # Combination 41 626s # Combination 42 626s # Combination 43 626s # Combination 44 626s # Combination 45 626s # Combination 46 626s # Combination 47 626s # Combination 48 626s # Combination 49 626s # Combination 50 626s # Combination 51 626s ok - glib/defaultvalue.test 626s # Running test: glib/uri.test 626s ok - glib/uri.test 626s # Running test: glib/threadtests.test 626s # Combination 52 626s # Combination 53 626s # Combination 54 626s # Combination 55 626s # Combination 56 626s # Combination 57 626s # Combination 58 626s # Combination 59 626s # Combination 60 626s # Combination 61 626s # Combination 62 626s # Combination 63 626s # Combination 64 626s # Combination 65 626s # Combination 66 626s # Combination 67 626s # Combination 68 626s # Combination 69 626s # Combination 70 626s # Combination 71 626s # Combination 72 626s # Combination 73 626s # Combination 74 626s # Combination 75 626s # Combination 76 626s # Combination 77 626s # Combination 78 626s # Combination 79 626s # Combination 80 626s # Combination 81 626s # Combination 82 626s # Combination 83 626s # Combination 84 626s # Combination 85 626s # Combination 86 626s # Combination 87 626s # Combination 88 626s # Combination 89 626s # Combination 90 626s # Combination 91 626s # Combination 92 626s # Combination 93 626s # Combination 94 626s # Combination 95 626s # Combination 96 626s # Combination 97 626s # Combination 98 626s # Combination 99 626s # Combination 100 626s # Combination 101 626s # Combination 102 626s # Combination 103 626s # Combination 104 626s # Combination 105 626s # Combination 106 626s # Combination 107 626s # Combination 108 626s # Combination 109 626s # Combination 110 626s # Combination 111 626s # Combination 112 626s # Combination 113 626s # Combination 114 626s # Combination 115 626s # Combination 116 626s # Combination 117 626s # Combination 118 626s # Combination 119 626s # Combination 120 626s # Combination 121 626s # Combination 122 626s # Combination 123 626s # Combination 124 626s # Combination 125 626s # Combination 126 626s # Combination 127 626s # Combination 128 626s # Combination 129 626s # Combination 130 626s # Combination 131 626s # Combination 132 626s # Combination 133 626s # Combination 134 626s # Combination 135 626s # Combination 136 626s # Combination 137 626s # Combination 138 626s # Combination 139 626s # Combination 140 626s # Combination 141 626s # Combination 142 626s # Combination 143 626s # Combination 144 626s # Combination 145 626s # Combination 146 626s # Combination 147 626s # Combination 148 626s # Combination 149 626s # Combination 150 626s # Combination 151 626s # Combination 152 626s # Combination 153 626s # Combination 154 626s # Combination 155 626s # Combination 156 626s # Combination 157 626s # Combination 158 626s # Combination 159 626s # Combination 160 626s # Combination 161 626s # Combination 162 626s # Combination 163 626s # Combination 164 626s # Combination 165 626s # Combination 166 626s # Combination 167 626s # Combination 168 626s # Combination 169 626s # Combination 170 626s # Combination 171 626s # Combination 172 626s # Combination 173 626s # Combination 174 626s # Combination 175 626s # Combination 176 626s # Combination 177 626s # Combination 178 626s # Combination 179 626s # Combination 180 626s # Combination 181 626s # Combination 182 626s # Combination 183 626s # Combination 184 626s # Combination 185 626s # Combination 186 626s # Combination 187 626s # Combination 188 626s # Combination 189 626s # Combination 190 626s # Combination 191 626s # Combination 192 626s # Combination 193 626s # Combination 194 626s # Combination 195 626s # Combination 196 626s # Combination 197 626s # Combination 198 626s # Combination 199 626s # Combination 200 626s # Combination 201 626s # Combination 202 626s # Combination 203 626s # Combination 204 626s # Combination 205 626s # Combination 206 626s # Combination 207 626s # Combination 208 626s # Combination 209 626s # Combination 210 626s # Combination 211 626s # Combination 212 626s # Combination 213 626s # Combination 214 626s # Combination 215 626s # Combination 216 626s # Combination 217 626s # Combination 218 626s # Combination 219 626s # Combination 220 626s # Combination 221 626s # Combination 222 626s # Combination 223 626s # Combination 224 626s # Combination 225 626s # Combination 226 626s # Combination 227 626s # Combination 228 626s # Combination 229 626s # Combination 230 626s # Combination 231 626s # Combination 232 626s # Combination 233 626s # Combination 234 626s # Combination 235 626s # Combination 236 626s # Combination 237 626s # Combination 238 626s # Combination 239 626s # Combination 240 626s # Combination 241 626s # Combination 242 626s # Combination 243 626s # Combination 244 626s # Combination 245 626s # Combination 246 626s # Combination 247 626s # Combination 248 626s # Combination 249 626s # Combination 250 626s # Combination 251 626s # Combination 252 626s # Combination 253 626s # Combination 254 626s # Combination 255 626s ok 15 /uri/join-split-round-trip 626s ok 16 /uri/normalize 626s # Start of unescape-bytes tests 626s # Test 0: %00%00 626s # Test 1: /cursors/none.png 626s # Test 2: /cursors%2fbad-subdir/none.png 626s # Test 3: %% 626s # Test 4: % 626s ok 17 /uri/unescape-bytes/nul-terminated 626s # Test 0: %00%00 626s # Test 1: /cursors/none.png 626s # Test 2: /cursors%2fbad-subdir/none.png 626s # Test 3: %% 626s # Test 4: % 626s ok 18 /uri/unescape-bytes/length 626s # End of unescape-bytes tests 626s # Start of parsing tests 626s # Test 0: foo: 626s # Test 1: file:/dev/null 626s # Test 2: file:///dev/null 626s # Test 3: ftp://user@host/path 626s # Test 4: ftp://user@host:9999/path 626s # Test 5: ftp://user:password@host/path 626s # Test 6: ftp://user:password@host:9999/path 626s # Test 7: ftp://user:password@host 626s # Test 8: http://us%65r@host 626s # Test 9: http://us%40r@host 626s # Test 10: http://us%3ar@host 626s # Test 11: http://us%2fr@host 626s # Test 12: http://us%3fr@host 626s # Test 13: http://host?query 626s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 626s # 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 626s # Test 16: http://space/%20 626s # Test 17: http://delims/%3C%3E%23%25%22 626s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 626s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 626s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 626s # Test 21: http://[3ffe:2a00:100:7031::1] 626s # Test 22: http://[1080::8:800:200C:417A]/foo 626s # Test 23: http://[::192.9.5.5]/ipng 626s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 626s # Test 25: http://[2010:836B:4179::836B:4179] 626s # Test 26: http://host/path with spaces 626s # Test 27: http://host/path 626s # Test 28: http://host/path 626s # Test 29: http://host 626s # Test 30: http://host:999 626s # Test 31: http://host/pa 626s # th 626s # Test 32: http: 626s # //host/path 626s # Test 33: http:// host/path 626s # Test 34: http://host/path? 626s # Test 35: http://host/path# 626s # Test 36: http://host/path% 626s # Test 37: http://h%ost/path 626s # Test 38: http://host/path%% 626s # Test 39: http://host/path%%% 626s # Test 40: http://host/path%/x/ 626s # Test 41: http://host/path%0x/ 626s # Test 42: http://host/path%ax 626s # Test 43: http://host/päth/ 626s # Test 44: HTTP://////////////// 626s # Test 45: http://@host 626s # Test 46: http://:@host 626s # Test 47: scheme://foo%3Abar._webdav._tcp.local 626s # Test 48: http://example.com/.. 626s # Test 49: foo0://host/path 626s # Test 50: f0.o://host/path 626s # Test 51: http++://host/path 626s # Test 52: http-ish://host/path 626s # Test 53: http://[fe80::dead:beef%]/ 626s # Test 54: http://[fe80::dead:beef%em1]/ 626s # Test 55: http://[fe80::dead:beef%em1]/ 626s # Test 56: http://[fe80::dead:beef%25em1]/ 626s # Test 57: http://[fe80::dead:beef%25em1%20]/ 626s # Test 58: http://[fe80::dead:beef%25em%31]/ 626s # Test 59: http://[fe80::dead:beef%10]/ 626s # Test 60: http://[fe80::dead:beef%10]/ 626s # Test 61: http://[fe80::dead:beef%25]/ 626s # Test 62: http://[fe80::dead:beef%25]/ 626s # Test 63: http://[192.168.0.1%25em1]/ 626s # Test 64: http://[fe80::dead:beef%2em1]/ 626s # Test 65: http://[fe80::dead:beef%2em1]/ 626s # Test 66: http://[fe80::dead:beef%25em1%00]/ 626s # Test 67: http://[fe80::dead:beef%25em1%00]/ 626s # Test 68: http://xn--mixed-üp/ 626s # Test 69: data:./// 626s # Test 70: data:/.// 626s ok 19 /uri/parsing/absolute 626s ok 20 /uri/parsing/relative 626s # End of parsing tests 626s # Start of iter-params tests 626s # URI 0: p1=foo&p2=bar;p3=baz 626s # URI 1: p1=foo&p2=bar 626s # URI 2: p1=foo&&P1=bar 626s # URI 3: %00=foo 626s # URI 4: p1=%00 626s # URI 5: p1=foo&p1=bar 626s # URI 6: p1=foo&P1=bar 626s # URI 7: =% 626s # URI 8: = 626s # URI 9: foo 626s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 626s ok 21 /uri/iter-params/nul-terminated 626s # URI 0: p1=foo&p2=bar;p3=baz 626s # URI 1: p1=foo&p2=bar 626s # URI 2: p1=foo&&P1=bar 626s # URI 3: %00=foo 626s # URI 4: p1=%00 626s # URI 5: p1=foo&p1=bar 626s # URI 6: p1=foo&P1=bar 626s # URI 7: =% 626s # URI 8: = 626s # URI 9: foo 626s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 626s ok 22 /uri/iter-params/length 626s # End of iter-params tests 626s # Start of parse-params tests 626s # URI 0: p1=foo&p2=bar;p3=baz 626s # URI 1: p1=foo&p2=bar 626s # URI 2: p1=foo&&P1=bar 626s # URI 3: %00=foo 626s # URI 4: p1=%00 626s # URI 5: p1=foo&p1=bar 626s # URI 6: p1=foo&P1=bar 626s # URI 7: =% 626s # URI 8: = 626s # URI 9: foo 626s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 626s ok 23 /uri/parse-params/nul-terminated 626s # URI 0: p1=foo&p2=bar;p3=baz 626s # URI 1: p1=foo&p2=bar 626s # URI 2: p1=foo&&P1=bar 626s # URI 3: %00=foo 626s # URI 4: p1=%00 626s # URI 5: p1=foo&p1=bar 626s # URI 6: p1=foo&P1=bar 626s # URI 7: =% 626s # URI 8: = 626s # URI 9: foo 626s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 626s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 626s ok 24 /uri/parse-params/length 626s # End of parse-params tests 626s # End of uri tests 626s TAP version 14 626s # random seed: R02S6b060ed276b8f6b535c3cd7c794dcdf0 626s 1..5 626s # Start of GObject tests 626s ok 1 /GObject/threaded-object-init 627s ok 2 /GObject/threaded-weak-ref 627s # slow test /GObject/threaded-weak-ref executed in 0.53 secs 627s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 627s # /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 627s ok 3 /GObject/threaded-toggle-notify 627s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 627s # Start of threaded-weak-ref tests 627s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 627s # /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. 627s ok 5 /GObject/threaded-weak-ref/on-finalization 627s # End of threaded-weak-ref tests 627s # End of GObject tests 627s ok - glib/threadtests.test 627s # Running test: glib/dir.test 627s TAP version 14 627s # random seed: R02S102aece66dae5004d1d01663becab7d1 627s 1..3 627s # Start of dir tests 627s ok 1 /dir/read 627s ok 2 /dir/nonexisting 627s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 627s ok 3 /dir/refcounting 627s # End of dir tests 627s ok - glib/dir.test 627s # Running test: glib/properties.test 627s TAP version 14 627s # random seed: R02Scdaac40f2aea28f5b0003fdf85d7203a 627s 1..14 627s # Start of properties tests 627s ok 1 /properties/install 627s ok - glib/properties.test 627s # Running test: glib/642026-ec.test 627s ok 2 /properties/install-many 627s ok 3 /properties/notify 627s ok 4 /properties/notify-queue 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 627s ok 5 /properties/construct 627s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 627s # Test g_object_get_property with an initialized value 627s # Test g_object_get_property with an uninitialized value 627s # Test g_object_get_property with a transformable value 627s ok 6 /properties/get-property 627s ok 7 /properties/testv_with_no_properties 627s ok 8 /properties/testv_with_valid_properties 627s ok 9 /properties/testv_with_invalid_property_type 627s ok 10 /properties/testv_with_invalid_property_names 627s ok 11 /properties/testv_getv 627s ok 12 /properties/testv_notify_queue 627s # Start of notify tests 627s ok 13 /properties/notify/too-many-freezes 627s # End of notify tests 627s # Start of set-property tests 627s # Start of variant tests 627s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 627s ok 14 /properties/set-property/variant/floating 627s # End of variant tests 627s # End of set-property tests 627s # End of properties tests 627s TAP version 14 627s # random seed: R02S23a75bb8af83067ace33332395d79e30 627s 1..1 627s # Start of glib tests 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 627s ok 1 /glib/642026 627s # End of glib tests 627s ok - glib/642026-ec.test 627s # Running test: glib/macros-c-99.test 627s TAP version 14 627s # random seed: R02Sd329a4f601a3619ba99a5ec684f3f367 627s 1..4 627s # Start of C tests 627s ok 1 /C/standard-99 627s # End of C tests 627s # Start of alignof tests 627s ok 2 /alignof/fallback 627s # End of alignof tests 627s # Start of assert tests 627s ok 3 /assert/static 627s # End of assert tests 627s # Start of struct tests 627s ok 4 /struct/sizeof_member 627s # End of struct tests 627s ok - glib/macros-c-99.test 627s # Running test: glib/qdata.test 627s TAP version 14 627s # random seed: R02S762683532d752adf29a3e3ab655d183b 627s 1..2 627s # Start of qdata tests 627s ok - glib/qdata.test 627s ok 1 /qdata/threaded 627s ok 2 /qdata/dup 627s # End of qdata tests 627s # Running test: glib/strfuncs.test 627s TAP version 14 627s # random seed: R02Sa05a6d1ddd363c8358c23c2d26e117d9 627s 1..51 627s # Start of strfuncs tests 627s ok 1 /strfuncs/ascii-strcasecmp 627s ok 2 /strfuncs/ascii_strdown 627s ok 3 /strfuncs/ascii_strdup 627s ok 4 /strfuncs/ascii_strtod 627s ok 5 /strfuncs/bounds-check 627s ok 6 /strfuncs/has-prefix 627s ok 7 /strfuncs/has-prefix-macro 627s ok 8 /strfuncs/has-suffix 627s ok 9 /strfuncs/has-suffix-macro 627s ok 10 /strfuncs/memdup 627s ok 11 /strfuncs/memdup2 627s ok 12 /strfuncs/set_str 627s ok 13 /strfuncs/stpcpy 627s ok 14 /strfuncs/str_match_string 627s ok 15 /strfuncs/str_tokenize_and_fold 627s ok 16 /strfuncs/strcanon 627s ok 17 /strfuncs/strchomp 627s ok 18 /strfuncs/strchug 627s ok 19 /strfuncs/strcompress-strescape 627s ok 20 /strfuncs/strconcat 627s ok 21 /strfuncs/strdelimit 627s ok 22 /strfuncs/strdup 627s ok 23 /strfuncs/strdup-printf 627s ok 24 /strfuncs/strdupv 627s ok 25 /strfuncs/strerror 627s ok 26 /strfuncs/strip-context 627s ok 27 /strfuncs/strjoin 627s ok 28 /strfuncs/strjoinv 627s ok 29 /strfuncs/strlcat 627s ok 30 /strfuncs/strlcpy 627s ok 31 /strfuncs/strncasecmp 627s ok 32 /strfuncs/strndup 627s ok 33 /strfuncs/strnfill 627s ok 34 /strfuncs/strreverse 627s ok 35 /strfuncs/strsignal 627s ok 36 /strfuncs/strsplit 627s ok 37 /strfuncs/strsplit-set 627s ok 38 /strfuncs/strstr 627s ok 39 /strfuncs/strtod 627s ok 40 /strfuncs/strtoull-strtoll 627s ok 41 /strfuncs/strup 627s ok 42 /strfuncs/strv-contains 627s ok 43 /strfuncs/strv-equal 627s ok 44 /strfuncs/strv-length 627s ok 45 /strfuncs/test-is-to-digit 627s ok 46 /strfuncs/transliteration 627s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 627s ok 47 /strfuncs/str-equal 627s ok 48 /strfuncs/str-is-ascii 627s # Start of ascii-string-to-num tests 627s ok 49 /strfuncs/ascii-string-to-num/pathological 627s ok 50 /strfuncs/ascii-string-to-num/usual 627s # End of ascii-string-to-num tests 627s # Start of strdup tests 627s ok 51 /strfuncs/strdup/inline 627s # End of strdup tests 627s # End of strfuncs tests 627s ok - glib/strfuncs.test 627s # Running test: glib/file-thumbnail.test 627s TAP version 14 627s # random seed: R02Sf1d764ee0260d6d8a16dbf974f958e00 627s 1..7 627s # Start of file-thumbnail tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/runtime 627s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 627s ok 1 /file-thumbnail/fail 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/runtime 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 627s ok 2 /file-thumbnail/size-priority 627s # Start of valid tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/runtime 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 627s ok 3 /file-thumbnail/valid/normal 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/runtime 627s ok - glib/file-thumbnail.test 627s # Running test: glib/io-stream.test 627s ok - glib/io-stream.test 627s # Running test: glib/gdbus-message.test 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 627s ok 4 /file-thumbnail/valid/large 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/runtime 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 627s ok 5 /file-thumbnail/valid/x-large 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/runtime 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 627s ok 6 /file-thumbnail/valid/xx-large 627s # End of valid tests 627s # Start of unknown tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/runtime 627s # Created test thumbnail at /tmp/test_file-thumbnail_SMXNE3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 627s ok 7 /file-thumbnail/unknown/super-large 627s # End of unknown tests 627s # End of file-thumbnail tests 627s TAP version 14 627s # random seed: R02S3329d6d117bc99d443883ec9cf2b5c28 627s 1..3 627s # Start of io-stream tests 627s ok 1 /io-stream/copy-chunks 627s # Start of close tests 627s # Start of async tests 627s ok 2 /io-stream/close/async/memory 627s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 627s ok 3 /io-stream/close/async/file 627s # End of async tests 627s # End of close tests 627s # End of io-stream tests 627s TAP version 14 627s # random seed: R02Sa454a7b0c5de22838958fe958ab1c5ad 627s 1..3 627s # Start of gdbus tests 627s # Start of message tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_ATGOE3/gdbus/message/lock/.dirs/runtime 627s ok 1 /gdbus/message/lock 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_ATGOE3/gdbus/message/copy/.dirs/runtime 627s ok 2 /gdbus/message/copy 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_ATGOE3/gdbus/message/bytes-needed/.dirs/runtime 627s # Vector: 0 627s # Vector: 1 627s # Vector: 2 627s # Vector: 3 627s # Vector: 4 627s # Vector: 5 627s ok 3 /gdbus/message/bytes-needed 627s # End of message tests 627s # End of gdbus tests 627s ok - glib/gdbus-message.test 627s # Running test: glib/atomic.test 627s TAP version 14 627s # random seed: R02Se1ecf660e482ee820aec6e2304807fd9 627s 1..2 627s # Start of atomic tests 627s ok 1 /atomic/types 627s ok - glib/atomic.test 627s ok 2 /atomic/threaded 627s # End of atomic tests 627s # Running test: glib/hash.test 627s TAP version 14 627s # random seed: R02Sb2d0ee866f46fb41f09114c5f5c4b6e5 627s 1..34 627s # Start of hash tests 627s ok 1 /hash/misc 627s ok 2 /hash/one 627s ok 3 /hash/honeyman 627s ok 4 /hash/direct 627s ok 5 /hash/direct2 627s ok 6 /hash/int 627s ok 7 /hash/int64 627s ok 8 /hash/double 627s ok 9 /hash/string 627s ok 10 /hash/set 627s ok 11 /hash/set-ref 627s ok 12 /hash/ref 627s ok 13 /hash/remove-all 627s ok 14 /hash/recursive-remove-all 627s ok 15 /hash/find 627s ok 16 /hash/foreach 627s ok 17 /hash/foreach-steal 627s ok 18 /hash/steal-extended 627s ok 19 /hash/steal-all-keys 627s ok 20 /hash/steal-all-values 627s ok 21 /hash/lookup-extended 627s ok 22 /hash/new-similar 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 627s ok 23 /hash/lookup-null-key 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 627s ok 24 /hash/destroy-modify 627s ok 25 /hash/consistency 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 627s ok 26 /hash/iter-replace 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 627s ok 27 /hash/set-insert-corruption 627s ok 28 /hash/set-to-strv 627s ok 29 /hash/get-keys-as-ptr-array 627s ok 30 /hash/get-values-as-ptr-array 627s ok 31 /hash/primes 627s # Start of int64 tests 627s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 627s ok 32 /hash/int64/collisions 627s # End of int64 tests 627s # Start of double tests 627s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 627s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 627s ok 33 /hash/double/collisions 627s # End of double tests 627s # Start of recursive-remove-all tests 627s # End of recursive-remove-all tests 627s # Start of steal-extended tests 627s ok 34 /hash/steal-extended/optional 627s # End of steal-extended tests 627s # End of hash tests 627s ok - glib/hash.test 627s # Running test: glib/type.test 627s TAP version 14 627s # random seed: R02S890b82fbe4d58d5ccfda2944efbd58c5 627s 1..6 627s # Start of type tests 627s ok 1 /type/registration-serial 627s ok 2 /type/interface-prerequisite 627s ok 3 /type/interface-check 627s ok 4 /type/next-base 627s ok 5 /type/is-a 627s # Invalid types can’t be queried. 627s # Unclassed types can’t be queried. 627s ok 6 /type/query 627s # End of type tests 627s ok - glib/type.test 627s # Running test: glib/sandbox.test 627s TAP version 14 627s # random seed: R02S631619ed7a11864c0f090fba3ebefdd5 627s 1..4 627s # Start of sandbox tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_ATMPE3/sandbox/none/.dirs/runtime 627s ok 1 /sandbox/none 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_ATMPE3/sandbox/snap/.dirs/runtime 627s # Created snap.yaml in /tmp/test_sandbox_ATMPE3/snap/current/meta/snap.yaml 627s ok 2 /sandbox/snap 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_ATMPE3/sandbox/classic-snap/.dirs/runtime 627s ok - glib/sandbox.test 627s # Created snap.yaml in /tmp/test_sandbox_ATMPE3/snap/current/meta/snap.yaml 627s ok 3 /sandbox/classic-snap 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/runtime 627s # Creating .flatpak-info in /tmp/test_sandbox_ATMPE3/sandbox/flatpak/.dirs/runtime/.flatpak-info 627s ok 4 /sandbox/flatpak 627s # End of sandbox tests 627s # Running test: glib/scannerapi.test 627s TAP version 14 627s # random seed: R02Sd67ca6307fe1e4189ebbbc2ac3e316f6 627s 1..8 627s # Start of scanner tests 627s ok 1 /scanner/warn 627s ok 2 /scanner/error 627s ok 3 /scanner/symbols 627s ok 4 /scanner/tokens 627s ok 5 /scanner/multiline-comment 627s ok 6 /scanner/int-to-float 627s ok 7 /scanner/fd-input 627s # Start of fd-input tests 627s ok 8 /scanner/fd-input/rewind 627s # End of fd-input tests 627s # End of scanner tests 627s ok - glib/scannerapi.test 627s # Running test: glib/defaultiface.test 627s ok - glib/defaultiface.test 627s TAP version 14 627s # random seed: R02S681083c72cf905c10a88669a1a6b1b6e 627s 1..2 627s # Start of gobject tests 627s ok 1 /gobject/static-iface 627s ok 2 /gobject/dynamic-iface 627s # End of gobject tests 627s # Running test: glib/date.test 627s TAP version 14 627s # random seed: R02Sbacebd4c649748a6255c2f3ace42c973 627s 1..122 627s # Start of date tests 627s ok 1 /date/basic 627s ok 2 /date/empty 627s ok 3 /date/dmy 627s ok 4 /date/julian 627s ok 5 /date/compare 627s ok 6 /date/dates 627s ok 7 /date/strftime 627s ok 8 /date/two-digit-years 627s ok 9 /date/parse 627s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 627s ok 11 /date/month_substring 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 627s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 627s ok 13 /date/clamp 627s ok 14 /date/order 627s ok 15 /date/copy 627s # Vector 0: 0000-00-00, invalid 627s # Vector 1: 0001-01-01, valid 627s # Vector 2: 0000-01-01, invalid 627s # Vector 3: 2000-02-30, invalid 627s # Vector 4: 2000-02-29, valid 627s # Vector 5: 2001-02-29, invalid 627s # Vector 6: 65535-01-01, valid 627s ok 16 /date/valid-dmy 627s # Considering 2000-01-01 627s # Considering 2000-01-07 627s # Considering 2000-01-08 627s # Considering 2001-01-01 627s # Considering 2001-01-07 627s # Considering 2001-01-08 627s # Considering 2002-01-01 627s # Considering 2002-01-07 627s # Considering 2002-01-08 627s # Considering 2003-01-01 627s # Considering 2003-01-07 627s # Considering 2003-01-08 627s # Considering 2004-01-01 627s # Considering 2004-01-07 627s # Considering 2004-01-08 627s # Considering 2006-01-01 627s # Considering 2006-01-07 627s # Considering 2006-01-08 627s # Considering 2010-01-01 627s # Considering 2010-01-07 627s # Considering 2010-01-08 627s ok 17 /date/week-of-year 627s # Start of parse tests 627s # Test 0 627s # Test 1 627s ok 18 /date/parse/invalid 627s # End of parse tests 627s # Start of year tests 627s ok 19 /date/year/1 627s ok 20 /date/year/2 627s ok 21 /date/year/3 627s ok 22 /date/year/4 627s ok 23 /date/year/5 627s ok 24 /date/year/6 627s ok 25 /date/year/7 627s ok 26 /date/year/8 627s ok 27 /date/year/9 627s ok 28 /date/year/10 627s ok 29 /date/year/11 627s ok 30 /date/year/12 627s ok 31 /date/year/13 627s ok 32 /date/year/14 627s ok 33 /date/year/98 627s ok 34 /date/year/99 627s ok 35 /date/year/100 627s ok 36 /date/year/101 627s ok 37 /date/year/102 627s ok 38 /date/year/103 627s ok 39 /date/year/397 627s ok 40 /date/year/398 627s ok 41 /date/year/399 627s ok 42 /date/year/400 627s ok 43 /date/year/401 627s ok 44 /date/year/402 627s ok 45 /date/year/403 627s ok 46 /date/year/404 627s ok 47 /date/year/405 627s ok 48 /date/year/406 627s ok 49 /date/year/1598 627s ok 50 /date/year/1599 627s ok 51 /date/year/1600 627s ok 52 /date/year/1601 627s ok 53 /date/year/1602 627s ok 54 /date/year/1650 627s ok 55 /date/year/1651 627s ok 56 /date/year/1897 627s ok 57 /date/year/1898 627s ok 58 /date/year/1899 627s ok 59 /date/year/1900 627s ok 60 /date/year/1901 627s ok 61 /date/year/1902 627s ok 62 /date/year/1903 627s ok 63 /date/year/1961 627s ok 64 /date/year/1962 627s ok 65 /date/year/1963 627s ok 66 /date/year/1964 627s ok 67 /date/year/1965 627s ok 68 /date/year/1967 627s ok 69 /date/year/1968 627s ok 70 /date/year/1969 627s ok 71 /date/year/1970 627s ok 72 /date/year/1971 627s ok 73 /date/year/1972 627s ok 74 /date/year/1973 627s ok 75 /date/year/1974 627s ok 76 /date/year/1975 627s ok 77 /date/year/1976 627s ok 78 /date/year/1977 627s ok 79 /date/year/1978 627s ok 80 /date/year/1979 627s ok 81 /date/year/1980 627s ok 82 /date/year/1981 627s ok 83 /date/year/1982 627s ok 84 /date/year/1983 627s ok 85 /date/year/1984 627s ok 86 /date/year/1985 627s ok 87 /date/year/1986 627s ok 88 /date/year/1987 627s ok 89 /date/year/1988 627s ok 90 /date/year/1989 627s ok 91 /date/year/1990 627s ok 92 /date/year/1991 627s ok 93 /date/year/1992 627s ok 94 /date/year/1993 627s ok 95 /date/year/1994 627s ok 96 /date/year/1995 627s ok 97 /date/year/1996 627s ok 98 /date/year/1997 627s ok 99 /date/year/1998 627s ok 100 /date/year/1999 627s ok 101 /date/year/2000 627s ok 102 /date/year/2001 627s ok 103 /date/year/2002 627s ok 104 /date/year/2003 627s ok 105 /date/year/2004 627s ok 106 /date/year/2005 627s ok 107 /date/year/2006 627s ok 108 /date/year/2007 627s ok 109 /date/year/2008 627s ok 110 /date/year/2009 627s ok 111 /date/year/2010 627s ok 112 /date/year/2011 627s ok 113 /date/year/2012 627s ok 114 /date/year/3000 627s ok 115 /date/year/3001 627s ok 116 /date/year/3002 627s ok 117 /date/year/3998 627s ok 118 /date/year/3999 627s ok 119 /date/year/4000 627s ok 120 /date/year/4001 627s ok 121 /date/year/4002 627s ok 122 /date/year/4003 627s # End of year tests 627s # End of date tests 627s ok - glib/date.test 627s # Running test: glib/convert.test 627s TAP version 14 627s # random seed: R02Sef4b5ffcf2c510cb00d661199263f342 627s 1..14 627s # Start of conversion tests 627s ok 1 /conversion/no-conv 627s ok 2 /conversion/iconv-state 627s ok 3 /conversion/illegal-sequence 627s ok 4 /conversion/byte-order 627s ok 5 /conversion/unicode 627s ok 6 /conversion/filename-utf8 627s ok 7 /conversion/filename-display 627s ok 8 /conversion/convert-embedded-nul 627s # Start of locale-to-utf8 tests 627s ok 9 /conversion/locale-to-utf8/embedded-nul 627s # Start of embedded-nul tests 627s # Start of subprocess tests 627s # End of subprocess tests 627s # End of embedded-nul tests 627s # End of locale-to-utf8 tests 627s # Start of locale-from-utf8 tests 627s ok 10 /conversion/locale-from-utf8/embedded-nul 627s # Start of embedded-nul tests 627s # Start of subprocess tests 627s # End of subprocess tests 627s # End of embedded-nul tests 627s # End of locale-from-utf8 tests 627s # Start of filename-to-utf8 tests 627s ok 11 /conversion/filename-to-utf8/embedded-nul 627s # Start of embedded-nul tests 627s # Start of subprocess tests 627s # End of subprocess tests 627s # End of embedded-nul tests 627s # End of filename-to-utf8 tests 627s # Start of filename-from-utf8 tests 627s ok 12 /conversion/filename-from-utf8/embedded-nul 627s # Start of embedded-nul tests 627s # Start of subprocess tests 627s # End of subprocess tests 627s # End of embedded-nul tests 627s # End of filename-from-utf8 tests 627s # Start of filename-from-uri tests 627s ok 13 /conversion/filename-from-uri/query-is-ignored 627s ok 14 /conversion/filename-from-uri/fragment-is-ignored 627s # End of filename-from-uri tests 627s # End of conversion tests 627s ok - glib/convert.test 627s # Running test: glib/rand.test 627s TAP version 14 627s # random seed: R02Se09cfb1ef2aa88116d69e9ba88aacd7b 627s 1..2 627s # Start of rand tests 627s ok - glib/rand.test 627s ok 1 /rand/test-rand 627s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 627s ok 2 /rand/double-range 627s # End of rand tests 627s # Running test: glib/string.test 627s TAP version 14 627s # random seed: R02S598fd905abac333a02c79a221548a721 627s 1..25 627s # Start of string tests 627s ok 1 /string/chunks 627s ok 2 /string/chunk-insert 627s ok 3 /string/new 627s ok 4 /string/printf 627s ok 5 /string/assign 627s ok 6 /string/append-c 627s ok 7 /string/append 627s ok 8 /string/append-vprintf 627s ok 9 /string/prepend-c 627s ok 10 /string/prepend 627s ok 11 /string/insert 627s ok 12 /string/insert-unichar 627s ok 13 /string/equal 627s ok 14 /string/truncate 627s ok 15 /string/overwrite 627s ok 16 /string/nul-handling 627s ok 17 /string/up-down 627s ok 18 /string/set-size 627s ok 19 /string/to-bytes 627s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 627s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 627s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 627s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 627s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 627s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 627s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 627s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 627s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 627s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 627s # 5: Replacing "o" with "" (limit 0) in "food for foals" 627s # -> 4 replacements, "fd fr fals" 627s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 627s # -> 3 replacements, "aaaaaaaaa" 627s # 7: Replacing "a" with "" (limit 0) in "aaa" 627s # -> 3 replacements, "" 627s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 627s # -> 1 replacements, "bba" 627s # 9: Replacing "" with "bar" (limit 0) in "foo" 627s # -> 4 replacements, "barfbarobarobar" 627s # 10: Replacing "" with "bar" (limit 1) in "foo" 627s # -> 1 replacements, "barfoo" 627s # 11: Replacing "" with "bar" (limit 2) in "foo" 627s # -> 2 replacements, "barfbaroo" 627s # 12: Replacing "" with "bar" (limit 3) in "foo" 627s # -> 3 replacements, "barfbarobaro" 627s # 13: Replacing "" with "bar" (limit 4) in "foo" 627s # -> 4 replacements, "barfbarobarobar" 627s # 14: Replacing "" with "bar" (limit 5) in "foo" 627s # -> 4 replacements, "barfbarobarobar" 627s # 15: Replacing "" with "x" (limit 0) in "" 627s # -> 1 replacements, "x" 627s # 16: Replacing "" with "" (limit 0) in "" 627s # -> 1 replacements, "" 627s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 627s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 627s ok 20 /string/replace 627s ok 21 /string/steal 627s ok 22 /string/new-take 627s ok 23 /string/copy 627s ok 24 /string/sized-new 627s # Start of new-take tests 627s ok 25 /string/new-take/null 627s # End of new-take tests 627s # End of string tests 627s ok - glib/string.test 627s # Running test: glib/cxx.test 627s TAP version 14 627s # random seed: R02S622bc8edb46fe06c43e3989f7dc23cb6 627s 1..2 627s # Start of gtask tests 627s # 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. 627s ok 1 /gtask/name 627s # Start of name tests 627s # 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. 627s ok 2 /gtask/name/macro-wrapper 627s # End of name tests 627s # End of gtask tests 627s ok - glib/cxx.test 627s # Running test: glib/object-info.test 627s TAP version 14 627s # random seed: R02Sbbe8bb7a0cda273845f263f5f28b44cb 627s 1..2 627s # Start of object-info tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_5ABJE3/object-info/find-method-using-interfaces/.dirs/runtime 627s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 627s ok 1 /object-info/find-method-using-interfaces 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_5ABJE3/object-info/find-vfunc-using-interfaces/.dirs/runtime 627s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 627s ok 2 /object-info/find-vfunc-using-interfaces 627s # End of object-info tests 627s ok - glib/object-info.test 627s # Running test: glib/atomic-c-99.test 627s TAP version 14 627s # random seed: R02Saec500c62810ff7b9f0127a26be9dd56 627s 1..2 627s # Start of atomic tests 627s ok 1 /atomic/types 627s ok 2 /atomic/threaded 627s # End of atomic tests 627s ok - glib/atomic-c-99.test 627s # Running test: glib/gdbus-test-codegen.test 627s TAP version 14 627s # random seed: R02S61c705b4991f5d6fa51ec48fe4e443da 627s 1..8 627s # Start of gdbus tests 627s # Start of codegen tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/annotations/.dirs/runtime 627s ok 1 /gdbus/codegen/annotations 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/interface_stability/.dirs/runtime 627s ok 2 /gdbus/codegen/interface_stability 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/object-manager/.dirs/runtime 627s ok 3 /gdbus/codegen/object-manager 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/property-naming/.dirs/runtime 627s ok 4 /gdbus/codegen/property-naming 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/autocleanups/.dirs/runtime 627s ok 5 /gdbus/codegen/autocleanups 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/deprecations/.dirs/runtime 627s ok 6 /gdbus/codegen/deprecations 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/standalone-interface-info/.dirs/runtime 627s ok 7 /gdbus/codegen/standalone-interface-info 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_3F0KE3/gdbus/codegen/unix-fd-list/.dirs/runtime 627s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 627s ok 8 /gdbus/codegen/unix-fd-list 627s # End of codegen tests 627s # End of gdbus tests 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s ok - glib/gdbus-test-codegen.test 627s # Running test: glib/properties-refcount4.test 627s TAP version 14 627s # random seed: R02S92d159fc256d4bc3fce7f21e4195bc1d 627s 1..1 627s # Start of gobject tests 627s # Start of refcount tests 627s ok 1 /gobject/refcount/properties-4 627s # End of refcount tests 627s # End of gobject tests 627s ok - glib/properties-refcount4.test 627s # Running test: glib/portal-support-env-var.test 627s ok - glib/portal-support-env-var.test 627s TAP version 14 627s # random seed: R02S09772b41bd9de4217b09f6b27195042d 627s 1..1 627s # Start of portal-support tests 627s ok 1 /portal-support/env-var 627s # End of portal-support tests 627s # Running test: glib/gobject-private.test 627s ok - glib/gobject-private.test 627s TAP version 14 627s # random seed: R02S8a45809f4d447a189bbc261d4dd616c4 627s 1..3 627s # Start of private tests 627s ok 1 /private/instance 627s ok 2 /private/derived-instance 627s ok 3 /private/mixed-derived-instance 627s # End of private tests 627s # Running test: glib/gdbus-proxy-unique-name.test 627s TAP version 14 627s # random seed: R02S031bc20c896b4648238f309ced8cb94c 627s 1..1 627s # Start of gdbus tests 627s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/home 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/cache 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/system-config2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/config 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/system-data2 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/data 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/state 627s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_T7MLE3/gdbus/proxy-unique-name/.dirs/runtime 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 627s ok 1 /gdbus/proxy-unique-name 627s # End of gdbus tests 627s ok - glib/gdbus-proxy-unique-name.test 627s # Running test: glib/gi-compile-repository.py.test 627s TAP version 13 627s ok 1 __main__.TestGICompileRepository.test_open_failure 627s # gir path set to [PosixPath('/usr/lib/x86_64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 627s # gi-compile-repository: /usr/bin/gi-compile-repository 627s # tmpdir: /tmp/tmpx18xcruz 627s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpx18xcruz/invalid.typelib'] 627s # Return code: 1 627s # Output: 627s # 627s # Error: 627s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 627s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 627s # gir path set to [PosixPath('/usr/lib/x86_64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 627s # gi-compile-repository: /usr/bin/gi-compile-repository 627s # tmpdir: /tmp/tmp7p63c2mu 627s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/x86_64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp7p63c2mu/GLib-2.typelib'] 627s # Return code: 0 627s # Output: 627s # 627s # Error: 627s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 627s # gi-compile-repository: /usr/bin/gi-compile-repository 627s # tmpdir: /tmp/tmphodvslhm 627s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/x86_64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 627s # Return code: 1 627s # Output: 627s # 627s # Error: 627s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 627s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 627s # gir path set to [PosixPath('/usr/lib/x86_64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 627s # gi-compile-repository: /usr/bin/gi-compile-repository 627s # tmpdir: /tmp/tmppqfxgh3_ 627s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmppqfxgh3_/GObject-2.typelib', '--includedir', '/usr/lib/x86_64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 627s # Return code: 0 627s # Output: 627s # 627s # Error: 628s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 628s # gi-compile-repository: /usr/bin/gi-compile-repository 628s # tmpdir: /tmp/tmp3xkx43lw 628s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/x86_64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 628s # Return code: 1 628s # Output: 628s # 628s # Error: 628s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 628s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 628s # gir path set to [PosixPath('/usr/lib/x86_64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 628s # gi-compile-repository: /usr/bin/gi-compile-repository 628s # tmpdir: /tmp/tmp_qietm3d 628s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmp_qietm3d/Gio-2.typelib', '--includedir', '/usr/lib/x86_64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 628s # Return code: 0 628s # Output: 628s # 628s # Error: 628s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 628s # gi-compile-repository: /usr/bin/gi-compile-repository 628s # tmpdir: /tmp/tmp050y18vo 628s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/x86_64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 628s # Return code: 1 628s # Output: 628s # 628s # Error: 628s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 628s 1..7 628s ok - glib/gi-compile-repository.py.test 628s # Running test: glib/mainloop.test 628s TAP version 14 628s # random seed: R02S1de504950b550574fe18e6d283c9d1c3 628s 1..47 628s # Start of maincontext tests 628s ok 1 /maincontext/basic 628s # Add same-priority sources: 9 628s # Find each source: 1 628s # Remove in random order: 8 628s ok 2 /maincontext/nsources_same_priority 628s # Add different-priority sources: 10 628s # Find each source: 1 628s # Remove in random order: 12 628s ok 3 /maincontext/nsources_different_priority 628s # Add sources from threads: 180 628s # Remove sources from threads: 117 628s ok 4 /maincontext/nsources_threadpool 628s ok 5 /maincontext/source_finalization 628s # /maincontext/idle-once summary: Test g_idle_add_once() works 628s ok 6 /maincontext/idle-once 628s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 628s ok 7 /maincontext/timeout-once 628s # /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. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 628s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 628s # Start of source_finalization_from_source tests 628s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 9 /maincontext/source_finalization_from_source/0 628s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 10 /maincontext/source_finalization_from_source/1 628s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 11 /maincontext/source_finalization_from_source/2 628s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 12 /maincontext/source_finalization_from_source/3 628s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 13 /maincontext/source_finalization_from_source/4 628s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 14 /maincontext/source_finalization_from_source/5 628s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 15 /maincontext/source_finalization_from_source/6 628s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 16 /maincontext/source_finalization_from_source/7 628s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 17 /maincontext/source_finalization_from_source/8 628s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 628s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 628s ok 18 /maincontext/source_finalization_from_source/9 628s # End of source_finalization_from_source tests 628s # Start of source_finalization_from_dispatch tests 628s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 628s ok 19 /maincontext/source_finalization_from_dispatch/0 628s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 628s ok 20 /maincontext/source_finalization_from_dispatch/1 628s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 628s ok 21 /maincontext/source_finalization_from_dispatch/2 628s # End of source_finalization_from_dispatch tests 628s # End of maincontext tests 628s # Start of mainloop tests 628s ok 22 /mainloop/basic 628s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 628s ok 24 /mainloop/priorities 629s # Executing: glib/mainloop.test 629s ok 25 /mainloop/invoke 629s # slow test /mainloop/invoke executed in 0.50 secs 630s ok 26 /mainloop/child_sources 630s # slow test /mainloop/child_sources executed in 1.17 secs 632s ok 27 /mainloop/recursive_child_sources 632s # slow test /mainloop/recursive_child_sources executed in 2.14 secs 632s ok 28 /mainloop/recursive_loop_child_sources 632s ok 29 /mainloop/swapping_child_sources 632s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 632s ok 30 /mainloop/blocked_child_sources 633s ok 31 /mainloop/source_time 633s # slow test /mainloop/source_time executed in 1.00 secs 633s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 633s ok 32 /mainloop/overflow 634s # Executing: glib/mainloop.test 634s ok 33 /mainloop/ready-time 634s # slow test /mainloop/ready-time executed in 0.50 secs 634s ok 34 /mainloop/wakeup 634s ok 35 /mainloop/remove-invalid 634s ok 36 /mainloop/unref-while-pending 634s ok 37 /mainloop/unix-fd 634s ok 38 /mainloop/unix-fd-source 634s ok 39 /mainloop/source-unix-fd-api 634s ok 40 /mainloop/wait 634s ok 41 /mainloop/unix-file-poll 634s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 634s ok 42 /mainloop/unix-fd-priority 634s ok 43 /mainloop/nfds 634s ok 44 /mainloop/steal-fd 635s ok 45 /mainloop/simultaneous-source-context-destruction 635s # slow test /mainloop/simultaneous-source-context-destruction executed in 0.57 secs 635s # Start of ownerless-polling tests 635s ok 46 /mainloop/ownerless-polling/attach-first 635s ok 47 /mainloop/ownerless-polling/pop-first 635s # End of ownerless-polling tests 635s # End of mainloop tests 635s ok - glib/mainloop.test 635s # Running test: glib/keyfile.test 635s TAP version 14 635s # random seed: R02Sf7e3c3813dca51f5857353304332b7e4 635s 1..36 635s # Start of keyfile tests 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/line-ends/.dirs/runtime 635s ok 1 /keyfile/line-ends 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/whitespace/.dirs/runtime 635s ok 2 /keyfile/whitespace 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/comments/.dirs/runtime 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 635s ok 3 /keyfile/comments 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/listing/.dirs/runtime 635s ok 4 /keyfile/listing 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/string/.dirs/runtime 635s ok 5 /keyfile/string 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/boolean/.dirs/runtime 635s ok 6 /keyfile/boolean 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/number/.dirs/runtime 635s ok 7 /keyfile/number 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/.dirs/runtime 635s ok 8 /keyfile/locale-string 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/lists/.dirs/runtime 635s ok 9 /keyfile/lists 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/lists-set-get/.dirs/runtime 635s ok 10 /keyfile/lists-set-get 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/group-remove/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 635s ok 11 /keyfile/group-remove 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/key-remove/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 635s ok 12 /keyfile/key-remove 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/groups/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 635s ok 13 /keyfile/groups 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-keys/.dirs/runtime 635s ok 14 /keyfile/duplicate-keys 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 635s ok 15 /keyfile/duplicate-groups 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/duplicate-groups2/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 635s ok 16 /keyfile/duplicate-groups2 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/group-names/.dirs/runtime 635s ok 17 /keyfile/group-names 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/key-names/.dirs/runtime 635s ok 18 /keyfile/key-names 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/reload/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 635s ok 19 /keyfile/reload 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/int64/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 635s ok 20 /keyfile/int64 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/load/.dirs/runtime 635s ok 21 /keyfile/load 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/save/.dirs/runtime 635s ok 22 /keyfile/save 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/load-fail/.dirs/runtime 635s ok 23 /keyfile/load-fail 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/non-utf8/.dirs/runtime 635s ok 24 /keyfile/non-utf8 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/page-boundary/.dirs/runtime 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 635s ok 25 /keyfile/page-boundary 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/ref/.dirs/runtime 635s ok 26 /keyfile/ref 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/replace-value/.dirs/runtime 635s ok 27 /keyfile/replace-value 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/list-separator/.dirs/runtime 635s ok 28 /keyfile/list-separator 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/empty-string/.dirs/runtime 635s ok 29 /keyfile/empty-string 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/limbo/.dirs/runtime 635s ok 30 /keyfile/limbo 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/utf8/.dirs/runtime 635s # Testing invalid encoding ‘non-UTF-8’ 635s # Testing invalid encoding ‘UTF’ 635s # Testing invalid encoding ‘UTF-9’ 635s ok 31 /keyfile/utf8 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/roundtrip/.dirs/runtime 635s ok 32 /keyfile/roundtrip 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/bytes/.dirs/runtime 635s ok 33 /keyfile/bytes 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/get-locale/.dirs/runtime 635s ok 34 /keyfile/get-locale 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/free-when-not-last-ref/.dirs/runtime 635s ok 35 /keyfile/free-when-not-last-ref 635s # Start of locale-string tests 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8J6QE3/keyfile/locale-string/multiple-loads/.dirs/runtime 635s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 635s ok 36 /keyfile/locale-string/multiple-loads 635s # End of locale-string tests 635s # End of keyfile tests 635s TAP version 14 635s # random seed: R02S41778175862ebbb6686d3919f8f052c7 635s 1..7 635s # Start of interface tests 635s # Start of properties tests 635s ok 1 /interface/properties/set 635s ok 2 /interface/properties/notify 635s ok 3 /interface/properties/find-overridden 635s ok 4 /interface/properties/list-overridden 635s ok 5 /interface/properties/find-interface 635s ok 6 /interface/properties/list-interface 635s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 635s ok 7 /interface/properties/not-overridden 635s # End of properties tests 635s # End of interface tests 635s TAP version 14 635s # random seed: R02S4b95e83feee3729c96eba1c685189991 635s 1..1 635s # Start of properties tests 635s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 635s ok 1 /properties/notify-in-init2 635s # End of properties tests 635s ok - glib/keyfile.test 635s # Running test: glib/ifaceproperties.test 635s ok - glib/ifaceproperties.test 635s # Running test: glib/notify-init2.test 635s ok - glib/notify-init2.test 635s # Running test: glib/cxx-2b.test 635s TAP version 14 635s # random seed: R02Sa8d25c8dfa28449d1c76bd55cc8febee 635s 1..2 635s # Start of gtask tests 635s # 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. 635s ok 1 /gtask/name 635s # Start of name tests 635s # 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. 635s ok 2 /gtask/name/macro-wrapper 635s # End of name tests 635s # End of gtask tests 635s TAP version 14 635s # random seed: R02Sd792176174410081753b28cd4b8928c4 635s 1..1 635s # Start of option tests 635s ok 1 /option/argv0 635s # End of option tests 635s TAP version 14 635s # random seed: R02S28a46dafdcf797a32cdab727aec9bcb6 635s 1..1 635s # Start of gobject tests 635s # private data during initialization: 54321 == 54321 635s # MAIN: emit test-signal: 635s # ::test_signal default_handler called 635s # ::test_signal default_handler called 635s # ::test_signal default_handler called 635s # signal return: "" 635s # MAIN: call iface print-string on test and derived object: 635s # Iface-FOO: "iface-string-from-test-type" from 0x635c9a1e1860 635s # Iface-BAR: "iface-string-from-derived-type" from 0x635c9a1e1710 635s # chaining: 635s # Iface-FOO: "iface-string-from-derived-type" from 0x635c9a1e1710 635s # private data after initialization: 54321 == 54321 635s ok 1 /gobject/basics 635s # End of gobject tests 635s TAP version 14 635s # random seed: R02S9b362c5555ad66d7d5419da2c6589b27 635s 1..7 635s # Start of data-output-stream tests 635s ok 1 /data-output-stream/basic 635s ok 2 /data-output-stream/write-lines-LF 635s ok 3 /data-output-stream/write-lines-CR 635s ok 4 /data-output-stream/write-lines-CR-LF 635s ok 5 /data-output-stream/write-int 635s ok 6 /data-output-stream/seek 635s ok 7 /data-output-stream/truncate 635s # End of data-output-stream tests 635s TAP version 14 635s # random seed: R02S8291d51144aef0386ec98e8f21f71028 635s 1..21 635s # Start of markup tests 635s # Start of collect tests 635s ok 1 /markup/collect/0 635s ok 2 /markup/collect/1 635s ok 3 /markup/collect/2 635s ok 4 /markup/collect/3 635s ok 5 /markup/collect/4 635s ok 6 /markup/collect/5 635s ok 7 /markup/collect/6 635s ok 8 /markup/collect/7 635s ok 9 /markup/collect/8 635s ok 10 /markup/collect/9 635s ok 11 /markup/collect/10 635s ok 12 /markup/collect/11 635s ok 13 /markup/collect/12 635s ok 14 /markup/collect/13 635s ok 15 /markup/collect/14 635s ok 16 /markup/collect/15 635s ok 17 /markup/collect/16 635s ok 18 /markup/collect/17 635s ok 19 /markup/collect/18 635s ok 20 /markup/collect/19 635s ok 21 /markup/collect/cleanup 635s # End of collect tests 635s # End of markup tests 635s TAP version 14 635s # random seed: R02S601b73c4b00e48244a0c5bec235569a2 635s 1..3 635s # Start of module tests 635s ok 1 /module/basics 635s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 635s ok 2 /module/invalid-libtool-archive 635s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 635s ok 3 /module/local-binding 635s # End of module tests 635s TAP version 14 635s # random seed: R02Sd1a4c5b21f0ae1fed520f7223c7c18d3 635s 1..3 635s # Start of gvfs tests 635s ok 1 /gvfs/local 635s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 635s ok 2 /gvfs/register-scheme 635s # Start of resource tests 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 635s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 635s ok 3 /gvfs/resource/malformed-escaping 635s # End of resource tests 635s # End of gvfs tests 635s TAP version 14 635s # random seed: R02Sa27027482ba929eb7d811c5594db0a1f 635s 1..14 635s # Start of glib tests 635s # Start of markup tests 635s # Start of subparser tests 635s # Start of success tests 635s ok 1 /glib/markup/subparser/success/0 635s ok 2 /glib/markup/subparser/success/1 635s ok 3 /glib/markup/subparser/success/2 635s ok 4 /glib/markup/subparser/success/3 635s ok 5 /glib/markup/subparser/success/4 635s ok 6 /glib/markup/subparser/success/5 635s ok 7 /glib/markup/subparser/success/6 635s # End of success tests 635s # Start of failure tests 635s ok 8 /glib/markup/subparser/failure/0 635s ok 9 /glib/markup/subparser/failure/1 635s ok 10 /glib/markup/subparser/failure/2 635s ok 11 /glib/markup/subparser/failure/3 635s ok 12 /glib/markup/subparser/failure/4 635s ok 13 /glib/markup/subparser/failure/5 635s ok 14 /glib/markup/subparser/failure/6 635s # End of failure tests 635s # End of subparser tests 635s # End of markup tests 635s # End of glib tests 635s TAP version 14 635s # random seed: R02S7e93ecc3064cd52a25ec30d49e07d0b8 635s 1..37 635s # Start of hmac tests 635s ok 1 /hmac/sha1-1 635s ok 2 /hmac/sha1-2 635s ok 3 /hmac/sha1-3 635s ok 4 /hmac/sha1-4 635s ok 5 /hmac/sha1-5 635s ok 6 /hmac/sha1-6 635s ok 7 /hmac/sha1-7 635s ok 8 /hmac/sha256-1 635s ok 9 /hmac/sha256-2 635s ok 10 /hmac/sha256-3 635s ok 11 /hmac/sha256-4 635s ok 12 /hmac/sha256-5 635s ok 13 /hmac/sha256-6 635s ok 14 /hmac/sha384-1 635s ok 15 /hmac/sha384-2 635s ok 16 /hmac/sha384-3 635s ok 17 /hmac/sha384-4 635s ok 18 /hmac/sha384-5 635s ok 19 /hmac/sha384-6 635s ok 20 /hmac/sha512-1 635s ok 21 /hmac/sha512-2 635s ok 22 /hmac/sha512-3 635s ok 23 /hmac/sha512-4 635s ok 24 /hmac/sha512-5 635s ok 25 /hmac/sha512-6 635s ok 26 /hmac/md5-1 635s ok 27 /hmac/md5-2 635s ok 28 /hmac/md5-3 635s ok 29 /hmac/md5-4 635s ok 30 /hmac/md5-5 635s ok 31 /hmac/md5-6 635s ok 32 /hmac/md5-7 635s ok 33 /hmac/ref-unref 635s ok 34 /hmac/copy 635s ok 35 /hmac/for-data 635s ok 36 /hmac/for-string 635s ok 37 /hmac/for-bytes 635s # End of hmac tests 635s TAP version 14 635s # random seed: R02S90d703bb7ab1a5ea647e8e27a32ffa23 635s 1..10 635s # Start of gdbus tests 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/validate-names/.dirs/runtime 635s ok 1 /gdbus/validate-names 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-own-name/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 2 /gdbus/bus-own-name 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 3 /gdbus/bus-watch-name 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 4 /gdbus/bus-watch-name-auto-start 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s dbus-daemon[39139]: [session uid=1000 pid=39139 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=39129 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 635s # Acquired a message bus connection 635s dbus-daemon[39139]: [session uid=1000 pid=39139 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 635s # Acquired the name org.gtk.GDBus.FakeService 635s ok - glib/cxx-2b.test 635s # Running test: glib/option-argv0.test 635s ok - glib/option-argv0.test 635s # Running test: glib/basics-gobject.test 635s ok - glib/basics-gobject.test 635s # Running test: glib/data-output-stream.test 635s ok - glib/data-output-stream.test 635s # Running test: glib/markup-collect.test 635s ok - glib/markup-collect.test 635s # Running test: glib/module-test-plugin.test 635s ok - glib/module-test-plugin.test 635s # Running test: glib/vfs.test 635s ok - glib/vfs.test 635s # Running test: glib/markup-subparser.test 635s ok - glib/markup-subparser.test 635s # Running test: glib/hmac.test 635s ok - glib/hmac.test 635s # Running test: glib/gdbus-names.test 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 6 /gdbus/bus-watch-name-closures 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 7 /gdbus/bus-watch-name-closures-auto-start 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-watch-different-context/.dirs/runtime 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 8 /gdbus/bus-watch-different-context 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/bus-unwatch-early/.dirs/runtime 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 635s ok - glib/gdbus-names.test 635s # Running test: glib/power-profile-monitor-portal.test 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 635s ok 9 /gdbus/bus-unwatch-early 635s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/home 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/cache 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/system-config2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/config 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/system-data2 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/data 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/state 635s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_P8BSE3/gdbus/escape-object-path/.dirs/runtime 635s ok 10 /gdbus/escape-object-path 635s # End of gdbus tests 635s TAP version 13 635s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 635s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 635s 1..2 635s ok - glib/power-profile-monitor-portal.test 635s # Running test: glib/unix.test 635s TAP version 14 635s # random seed: R02S58e17ef65f95293d88f1f7d8d4f33d62 635s 1..20 635s # Start of glib-unix tests 635s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 635s ok 1 /glib-unix/closefrom 635s ok 2 /glib-unix/pipe 635s # /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 635s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 635s ok 3 /glib-unix/pipe-stdio-overwrite 635s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 635s ok 4 /glib-unix/pipe-struct 635s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 635s ok 5 /glib-unix/pipe-struct-auto 635s ok 6 /glib-unix/error 635s ok 7 /glib-unix/nonblocking 636s ok 8 /glib-unix/sighup 636s # slow test /glib-unix/sighup executed in 0.50 secs 636s ok 9 /glib-unix/sigterm 636s # slow test /glib-unix/sigterm executed in 0.50 secs 637s ok 10 /glib-unix/sighup_again 637s # slow test /glib-unix/sighup_again executed in 0.50 secs 637s ok 11 /glib-unix/sighup_add_remove 637s ok 12 /glib-unix/sighup_nested 639s # Executing: glib/unix.test 639s ok 13 /glib-unix/callback_after_signal 639s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 639s ok 14 /glib-unix/child-wait 639s # Start of closefrom tests 639s # Start of subprocess tests 639s # End of subprocess tests 639s # End of closefrom tests 639s # Start of pipe tests 639s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 639s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 639s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 639s ok 15 /glib-unix/pipe/fd-cloexec 639s # End of pipe tests 639s # Start of sighup tests 640s ok 16 /glib-unix/sighup/alternate-stack 640s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 640s # End of sighup tests 640s # Start of sigterm tests 641s ok 17 /glib-unix/sigterm/alternate-stack 641s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 641s # End of sigterm tests 641s # Start of sighup_again tests 642s ok 18 /glib-unix/sighup_again/alternate-stack 642s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 642s # End of sighup_again tests 642s # Start of get-passwd-entry tests 642s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 642s ok 19 /glib-unix/get-passwd-entry/root 642s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 642s ok 20 /glib-unix/get-passwd-entry/nonexistent 642s # End of get-passwd-entry tests 642s # End of glib-unix tests 642s ok - glib/unix.test 642s # Running test: glib/gdbus-proxy-threads.test 642s TAP version 14 642s # random seed: R02S403e7d20ed1260e619ead4275fe25cd7 642s 1..1 642s # Start of gdbus tests 642s # Start of proxy tests 642s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/home 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/cache 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/system-config2 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/config 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/system-data2 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/data 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/state 642s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_7C7PE3/gdbus/proxy/vs-threads/.dirs/runtime 642s ok 1 /gdbus/proxy/vs-threads 642s # End of proxy tests 642s # End of gdbus tests 642s cleaning up pid 39168 642s ok - glib/gdbus-proxy-threads.test 642s # Running test: glib/srvtarget.test 642s TAP version 14 642s # random seed: R02S57c78d557b933ae381867e8da983a111 642s 1..1 642s # Start of srvtarget tests 643s ok 1 /srvtarget/srv-target-ordering 643s # End of srvtarget tests 643s ok - glib/srvtarget.test 643s # Running test: glib/flags.test 643s TAP version 14 643s # random seed: R02S3d2cc826b6615393a779bcfd36f95d6c 643s 1..1 643s # Start of gobject tests 643s # Start of flags tests 643s ok 1 /gobject/flags/validate 643s # End of flags tests 643s # End of gobject tests 643s ok - glib/flags.test 643s # Running test: glib/pollable.test 643s ok - glib/pollable.test 643s # Running test: glib/io-channel-basic.test 643s TAP version 14 643s # random seed: R02Sa981076042bcab623120add0a4dcd19e 643s 1..6 643s # Start of pollable tests 643s ok 1 /pollable/converter 643s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 643s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5d7531454880 and GSocketClientAsyncConnectData 0x5d7531456700 643s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 643s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 643s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5d7531462210 for GSocketClientAsyncConnectData 0x5d7531456700 643s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 643s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 643s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 643s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 643s ok 2 /pollable/socket 643s # Start of unix tests 643s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 643s ok 3 /pollable/unix/pipe 643s # /pollable/unix/pty summary: Test that PTYs are considered pollable 643s ok 4 /pollable/unix/pty 643s # /pollable/unix/file summary: Test that regular files are not considered pollable 643s ok 5 /pollable/unix/file 643s # /pollable/unix/nulldev summary: Test that /dev/null is not considered pollable, but only if on a system where we are able to tell it apart from devices that actually implement poll 643s ok 6 /pollable/unix/nulldev 643s # End of unix tests 643s # End of pollable tests 643s TAP version 14 643s # random seed: R02S33f8942f42e35dba4b13c3e2a6b1c73f 643s 1..1 643s # Start of gio tests 643s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 643s # random seed: R02S2ed440887c5b14fb4583fa22a7a80a4a 643s # GLib-DEBUG: io-channel-basic: child writing 8+56 bytes to 6 643s # GLib-DEBUG: io-channel-basic: ...from 5: IN 643s # GLib-DEBUG: io-channel-basic: ...from 5: 56 bytes 643s # GLib-DEBUG: io-channel-basic: ...from 5: OK 643s # GLib-DEBUG: io-channel-basic: child writing 8+2999 bytes to 6 643s # GLib-DEBUG: io-channel-basic: ...from 5: IN 643s # GLib-DEBUG: io-channel-basic: ...from 5: 2999 bytes 643s # GLib-DEBUG: io-channel-basic: ...from 5: OK 644s # GLib-DEBUG: io-channel-basic: child writing 8+1279 bytes to 6 644s # GLib-DEBUG: io-channel-basic: ...from 5: IN 644s # GLib-DEBUG: io-channel-basic: ...from 5: 1279 bytes 644s # GLib-DEBUG: io-channel-basic: ...from 5: OK 644s # Executing: glib/io-channel-basic.test 644s # GLib-DEBUG: io-channel-basic: child writing 8+3017 bytes to 6 644s # GLib-DEBUG: io-channel-basic: ...from 5: IN 644s # GLib-DEBUG: io-channel-basic: ...from 5: 3017 bytes 644s # GLib-DEBUG: io-channel-basic: ...from 5: OK 644s # GLib-DEBUG: io-channel-basic: child writing 8+3414 bytes to 6 644s # GLib-DEBUG: io-channel-basic: ...from 5: IN 644s # GLib-DEBUG: io-channel-basic: ...from 5: 3414 bytes 644s # GLib-DEBUG: io-channel-basic: ...from 5: OK 644s # GLib-DEBUG: io-channel-basic: child writing 8+3274 bytes to 6 644s # GLib-DEBUG: io-channel-basic: ...from 5: IN 644s # GLib-DEBUG: io-channel-basic: ...from 5: 3274 bytes 644s # GLib-DEBUG: io-channel-basic: ...from 5: OK 645s # GLib-DEBUG: io-channel-basic: child writing 8+3383 bytes to 6 645s # GLib-DEBUG: io-channel-basic: ...from 5: IN 645s # GLib-DEBUG: io-channel-basic: ...from 5: 3383 bytes 645s # GLib-DEBUG: io-channel-basic: ...from 5: OK 645s # GLib-DEBUG: io-channel-basic: child writing 8+511 bytes to 6 645s # GLib-DEBUG: io-channel-basic: ...from 5: IN 645s # GLib-DEBUG: io-channel-basic: ...from 5: 511 bytes 645s # GLib-DEBUG: io-channel-basic: ...from 5: OK 645s # GLib-DEBUG: io-channel-basic: child writing 8+1387 bytes to 6 645s # GLib-DEBUG: io-channel-basic: ...from 5: IN 645s # GLib-DEBUG: io-channel-basic: ...from 5: 1387 bytes 645s # GLib-DEBUG: io-channel-basic: ...from 5: OK 645s # GLib-DEBUG: io-channel-basic: child writing 8+4850 bytes to 6 645s # GLib-DEBUG: io-channel-basic: ...from 5: IN 645s # GLib-DEBUG: io-channel-basic: ...from 5: 4850 bytes 645s # GLib-DEBUG: io-channel-basic: ...from 5: OK 646s # GLib-DEBUG: io-channel-basic: child writing 8+774 bytes to 6 646s # GLib-DEBUG: io-channel-basic: ...from 5: IN 646s # GLib-DEBUG: io-channel-basic: ...from 5: 774 bytes 646s # GLib-DEBUG: io-channel-basic: ...from 5: OK 646s # GLib-DEBUG: io-channel-basic: child writing 8+3279 bytes to 6 646s # GLib-DEBUG: io-channel-basic: ...from 5: IN 646s # GLib-DEBUG: io-channel-basic: ...from 5: 3279 bytes 646s # GLib-DEBUG: io-channel-basic: ...from 5: OK 646s # GLib-DEBUG: io-channel-basic: child writing 8+57 bytes to 6 646s # GLib-DEBUG: io-channel-basic: ...from 5: IN 646s # GLib-DEBUG: io-channel-basic: ...from 5: 57 bytes 646s # GLib-DEBUG: io-channel-basic: ...from 5: OK 646s # GLib-DEBUG: io-channel-basic: child writing 8+2730 bytes to 6 646s # GLib-DEBUG: io-channel-basic: ...from 5: IN 646s # GLib-DEBUG: io-channel-basic: ...from 5: 2730 bytes 646s # GLib-DEBUG: io-channel-basic: ...from 5: OK 647s # GLib-DEBUG: io-channel-basic: child writing 8+4304 bytes to 6 647s # GLib-DEBUG: io-channel-basic: ...from 5: IN 647s # GLib-DEBUG: io-channel-basic: ...from 5: 4304 bytes 647s # GLib-DEBUG: io-channel-basic: ...from 5: OK 647s # GLib-DEBUG: io-channel-basic: child writing 8+2470 bytes to 6 647s # GLib-DEBUG: io-channel-basic: ...from 5: IN 647s # GLib-DEBUG: io-channel-basic: ...from 5: 2470 bytes 647s # GLib-DEBUG: io-channel-basic: ...from 5: OK 647s # GLib-DEBUG: io-channel-basic: child writing 8+3604 bytes to 6 647s # GLib-DEBUG: io-channel-basic: ...from 5: IN 647s # GLib-DEBUG: io-channel-basic: ...from 5: 3604 bytes 647s # GLib-DEBUG: io-channel-basic: ...from 5: OK 647s # GLib-DEBUG: io-channel-basic: child writing 8+1717 bytes to 6 647s # GLib-DEBUG: io-channel-basic: ...from 5: IN 647s # GLib-DEBUG: io-channel-basic: ...from 5: 1717 bytes 647s # GLib-DEBUG: io-channel-basic: ...from 5: OK 648s # GLib-DEBUG: io-channel-basic: child writing 8+2768 bytes to 6 648s # GLib-DEBUG: io-channel-basic: ...from 5: IN 648s # GLib-DEBUG: io-channel-basic: ...from 5: 2768 bytes 648s # GLib-DEBUG: io-channel-basic: ...from 5: OK 648s # GLib-DEBUG: io-channel-basic: child writing 8+1654 bytes to 6 648s # GLib-DEBUG: io-channel-basic: ...from 5: IN 648s # GLib-DEBUG: io-channel-basic: ...from 5: 1654 bytes 648s # GLib-DEBUG: io-channel-basic: ...from 5: OK 648s # GLib-DEBUG: io-channel-basic: child writing 8+4099 bytes to 6 648s # GLib-DEBUG: io-channel-basic: ...from 5: IN 648s # GLib-DEBUG: io-channel-basic: ...from 5: 4099 bytes 648s # GLib-DEBUG: io-channel-basic: ...from 5: OK 648s # GLib-DEBUG: io-channel-basic: child writing 8+1890 bytes to 6 648s # GLib-DEBUG: io-channel-basic: ...from 5: IN 648s # GLib-DEBUG: io-channel-basic: ...from 5: 1890 bytes 648s # GLib-DEBUG: io-channel-basic: ...from 5: OK 649s # Executing: glib/io-channel-basic.test 649s # GLib-DEBUG: io-channel-basic: child writing 8+3397 bytes to 6 649s # GLib-DEBUG: io-channel-basic: ...from 5: IN 649s # GLib-DEBUG: io-channel-basic: ...from 5: 3397 bytes 649s # GLib-DEBUG: io-channel-basic: ...from 5: OK 649s # GLib-DEBUG: io-channel-basic: child writing 8+2144 bytes to 6 649s # GLib-DEBUG: io-channel-basic: ...from 5: IN 649s # GLib-DEBUG: io-channel-basic: ...from 5: 2144 bytes 649s # GLib-DEBUG: io-channel-basic: ...from 5: OK 649s # GLib-DEBUG: io-channel-basic: child writing 8+3917 bytes to 6 649s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 649s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 649s # GLib-DEBUG: io-channel-basic: ...from 5: 3917 bytes 649s # GLib-DEBUG: io-channel-basic: ...from 5: OK 649s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 649s # random seed: R02S0a3d705899088414de07e01ce96539b2 649s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 649s # random seed: R02Sa19bbaf4f16f08e273b03c6552ad7270 649s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 649s # random seed: R02S40436fb0b072bc8a21b1c30a3d7beae1 649s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 649s # random seed: R02S787bc954fd9550959dcf3d79273f02f9 649s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 649s # random seed: R02S3cad19401be80ab568882230fba8f34a 649s # GLib-DEBUG: io-channel-basic: child writing 8+4410 bytes to 17 649s # GLib-DEBUG: io-channel-basic: ...from 16: IN 649s # GLib-DEBUG: io-channel-basic: ...from 16: 4410 bytes 649s # GLib-DEBUG: io-channel-basic: ...from 16: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+3831 bytes to 15 650s # GLib-DEBUG: io-channel-basic: ...from 14: IN 650s # GLib-DEBUG: io-channel-basic: ...from 14: 3831 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 14: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+3117 bytes to 9 650s # GLib-DEBUG: io-channel-basic: ...from 8: IN 650s # GLib-DEBUG: io-channel-basic: ...from 8: 3117 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 8: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+1089 bytes to 11 650s # GLib-DEBUG: io-channel-basic: ...from 10: IN 650s # GLib-DEBUG: io-channel-basic: ...from 10: 1089 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 10: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+4857 bytes to 13 650s # GLib-DEBUG: io-channel-basic: ...from 12: IN 650s # GLib-DEBUG: io-channel-basic: ...from 12: 4857 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 12: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+3551 bytes to 17 650s # GLib-DEBUG: io-channel-basic: ...from 16: IN 650s # GLib-DEBUG: io-channel-basic: ...from 16: 3551 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 16: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+1792 bytes to 15 650s # GLib-DEBUG: io-channel-basic: ...from 14: IN 650s # GLib-DEBUG: io-channel-basic: ...from 14: 1792 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 14: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+4668 bytes to 11 650s # GLib-DEBUG: io-channel-basic: ...from 10: IN 650s # GLib-DEBUG: io-channel-basic: ...from 10: 4668 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 10: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+3784 bytes to 9 650s # GLib-DEBUG: io-channel-basic: ...from 8: IN 650s # GLib-DEBUG: io-channel-basic: ...from 8: 3784 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 8: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+1869 bytes to 13 650s # GLib-DEBUG: io-channel-basic: ...from 12: IN 650s # GLib-DEBUG: io-channel-basic: ...from 12: 1869 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 12: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+1340 bytes to 17 650s # GLib-DEBUG: io-channel-basic: ...from 16: IN 650s # GLib-DEBUG: io-channel-basic: ...from 16: 1340 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 16: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+3445 bytes to 11 650s # GLib-DEBUG: io-channel-basic: ...from 10: IN 650s # GLib-DEBUG: io-channel-basic: ...from 10: 3445 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 10: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+36 bytes to 9 650s # GLib-DEBUG: io-channel-basic: ...from 8: IN 650s # GLib-DEBUG: io-channel-basic: ...from 8: 36 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 8: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+2564 bytes to 13 650s # GLib-DEBUG: io-channel-basic: ...from 12: IN 650s # GLib-DEBUG: io-channel-basic: ...from 12: 2564 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 12: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+682 bytes to 15 650s # GLib-DEBUG: io-channel-basic: ...from 14: IN 650s # GLib-DEBUG: io-channel-basic: ...from 14: 682 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 14: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+373 bytes to 13 650s # GLib-DEBUG: io-channel-basic: ...from 12: IN 650s # GLib-DEBUG: io-channel-basic: ...from 12: 373 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 12: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+1007 bytes to 15 650s # GLib-DEBUG: io-channel-basic: ...from 14: IN 650s # GLib-DEBUG: io-channel-basic: ...from 14: 1007 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 14: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+3882 bytes to 11 650s # GLib-DEBUG: io-channel-basic: ...from 10: IN 650s # GLib-DEBUG: io-channel-basic: ...from 10: 3882 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 10: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+4039 bytes to 9 650s # GLib-DEBUG: io-channel-basic: ...from 8: IN 650s # GLib-DEBUG: io-channel-basic: ...from 8: 4039 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 8: OK 650s # GLib-DEBUG: io-channel-basic: child writing 8+1344 bytes to 17 650s # GLib-DEBUG: io-channel-basic: ...from 16: IN 650s # GLib-DEBUG: io-channel-basic: ...from 16: 1344 bytes 650s # GLib-DEBUG: io-channel-basic: ...from 16: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+950 bytes to 13 651s # GLib-DEBUG: io-channel-basic: ...from 12: IN 651s # GLib-DEBUG: io-channel-basic: ...from 12: 950 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 12: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+1424 bytes to 15 651s # GLib-DEBUG: io-channel-basic: ...from 14: IN 651s # GLib-DEBUG: io-channel-basic: ...from 14: 1424 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 14: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+2461 bytes to 9 651s # GLib-DEBUG: io-channel-basic: ...from 8: IN 651s # GLib-DEBUG: io-channel-basic: ...from 8: 2461 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 8: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+4829 bytes to 17 651s # GLib-DEBUG: io-channel-basic: ...from 16: IN 651s # GLib-DEBUG: io-channel-basic: ...from 16: 4829 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 16: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+977 bytes to 11 651s # GLib-DEBUG: io-channel-basic: ...from 10: IN 651s # GLib-DEBUG: io-channel-basic: ...from 10: 977 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 10: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+2564 bytes to 13 651s # GLib-DEBUG: io-channel-basic: ...from 12: IN 651s # GLib-DEBUG: io-channel-basic: ...from 12: 2564 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 12: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+3935 bytes to 15 651s # GLib-DEBUG: io-channel-basic: ...from 14: IN 651s # GLib-DEBUG: io-channel-basic: ...from 14: 3935 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 14: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+4351 bytes to 9 651s # GLib-DEBUG: io-channel-basic: ...from 8: IN 651s # GLib-DEBUG: io-channel-basic: ...from 8: 4351 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 8: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+3982 bytes to 17 651s # GLib-DEBUG: io-channel-basic: ...from 16: IN 651s # GLib-DEBUG: io-channel-basic: ...from 16: 3982 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 16: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+167 bytes to 11 651s # GLib-DEBUG: io-channel-basic: ...from 10: IN 651s # GLib-DEBUG: io-channel-basic: ...from 10: 167 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 10: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+1951 bytes to 13 651s # GLib-DEBUG: io-channel-basic: ...from 12: IN 651s # GLib-DEBUG: io-channel-basic: ...from 12: 1951 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 12: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+3846 bytes to 15 651s # GLib-DEBUG: io-channel-basic: ...from 14: IN 651s # GLib-DEBUG: io-channel-basic: ...from 14: 3846 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 14: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+654 bytes to 9 651s # GLib-DEBUG: io-channel-basic: ...from 8: IN 651s # GLib-DEBUG: io-channel-basic: ...from 8: 654 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 8: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+2067 bytes to 11 651s # GLib-DEBUG: io-channel-basic: ...from 10: IN 651s # GLib-DEBUG: io-channel-basic: ...from 10: 2067 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 10: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+4105 bytes to 17 651s # GLib-DEBUG: io-channel-basic: ...from 16: IN 651s # GLib-DEBUG: io-channel-basic: ...from 16: 4105 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 16: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+3573 bytes to 13 651s # GLib-DEBUG: io-channel-basic: ...from 12: IN 651s # GLib-DEBUG: io-channel-basic: ...from 12: 3573 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 12: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+4150 bytes to 9 651s # GLib-DEBUG: io-channel-basic: ...from 8: IN 651s # GLib-DEBUG: io-channel-basic: ...from 8: 4150 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 8: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+3033 bytes to 15 651s # GLib-DEBUG: io-channel-basic: ...from 14: IN 651s # GLib-DEBUG: io-channel-basic: ...from 14: 3033 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 14: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+3360 bytes to 11 651s # GLib-DEBUG: io-channel-basic: ...from 10: IN 651s # GLib-DEBUG: io-channel-basic: ...from 10: 3360 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 10: OK 651s # GLib-DEBUG: io-channel-basic: child writing 8+4096 bytes to 17 651s # GLib-DEBUG: io-channel-basic: ...from 16: IN 651s # GLib-DEBUG: io-channel-basic: ...from 16: 4096 bytes 651s # GLib-DEBUG: io-channel-basic: ...from 16: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3821 bytes to 13 652s # GLib-DEBUG: io-channel-basic: ...from 12: IN 652s # GLib-DEBUG: io-channel-basic: ...from 12: 3821 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 12: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+4281 bytes to 9 652s # GLib-DEBUG: io-channel-basic: ...from 8: IN 652s # GLib-DEBUG: io-channel-basic: ...from 8: 4281 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 8: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+1735 bytes to 15 652s # GLib-DEBUG: io-channel-basic: ...from 14: IN 652s # GLib-DEBUG: io-channel-basic: ...from 14: 1735 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 14: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3485 bytes to 11 652s # GLib-DEBUG: io-channel-basic: ...from 10: IN 652s # GLib-DEBUG: io-channel-basic: ...from 10: 3485 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 10: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3970 bytes to 17 652s # GLib-DEBUG: io-channel-basic: ...from 16: IN 652s # GLib-DEBUG: io-channel-basic: ...from 16: 3970 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 16: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+2431 bytes to 13 652s # GLib-DEBUG: io-channel-basic: ...from 12: IN 652s # GLib-DEBUG: io-channel-basic: ...from 12: 2431 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 12: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+1202 bytes to 9 652s # GLib-DEBUG: io-channel-basic: ...from 8: IN 652s # GLib-DEBUG: io-channel-basic: ...from 8: 1202 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 8: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+493 bytes to 15 652s # GLib-DEBUG: io-channel-basic: ...from 14: IN 652s # GLib-DEBUG: io-channel-basic: ...from 14: 493 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 14: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+2607 bytes to 11 652s # GLib-DEBUG: io-channel-basic: ...from 10: IN 652s # GLib-DEBUG: io-channel-basic: ...from 10: 2607 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 10: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+2062 bytes to 17 652s # GLib-DEBUG: io-channel-basic: ...from 16: IN 652s # GLib-DEBUG: io-channel-basic: ...from 16: 2062 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 16: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3058 bytes to 13 652s # GLib-DEBUG: io-channel-basic: ...from 12: IN 652s # GLib-DEBUG: io-channel-basic: ...from 12: 3058 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 12: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+145 bytes to 11 652s # GLib-DEBUG: io-channel-basic: ...from 10: IN 652s # GLib-DEBUG: io-channel-basic: ...from 10: 145 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 10: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+2237 bytes to 15 652s # GLib-DEBUG: io-channel-basic: ...from 14: IN 652s # GLib-DEBUG: io-channel-basic: ...from 14: 2237 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 14: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3287 bytes to 9 652s # GLib-DEBUG: io-channel-basic: ...from 8: IN 652s # GLib-DEBUG: io-channel-basic: ...from 8: 3287 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 8: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+4714 bytes to 17 652s # GLib-DEBUG: io-channel-basic: ...from 16: IN 652s # GLib-DEBUG: io-channel-basic: ...from 16: 4714 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 16: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+1815 bytes to 13 652s # GLib-DEBUG: io-channel-basic: ...from 12: IN 652s # GLib-DEBUG: io-channel-basic: ...from 12: 1815 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 12: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3240 bytes to 11 652s # GLib-DEBUG: io-channel-basic: ...from 10: IN 652s # GLib-DEBUG: io-channel-basic: ...from 10: 3240 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 10: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+4683 bytes to 15 652s # GLib-DEBUG: io-channel-basic: ...from 14: IN 652s # GLib-DEBUG: io-channel-basic: ...from 14: 4683 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 14: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+75 bytes to 17 652s # GLib-DEBUG: io-channel-basic: ...from 16: IN 652s # GLib-DEBUG: io-channel-basic: ...from 16: 75 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 16: OK 652s # GLib-DEBUG: io-channel-basic: child writing 8+3635 bytes to 9 652s # GLib-DEBUG: io-channel-basic: ...from 8: IN 652s # GLib-DEBUG: io-channel-basic: ...from 8: 3635 bytes 652s # GLib-DEBUG: io-channel-basic: ...from 8: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+3420 bytes to 13 653s # GLib-DEBUG: io-channel-basic: ...from 12: IN 653s # GLib-DEBUG: io-channel-basic: ...from 12: 3420 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 12: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4793 bytes to 11 653s # GLib-DEBUG: io-channel-basic: ...from 10: IN 653s # GLib-DEBUG: io-channel-basic: ...from 10: 4793 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 10: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+131 bytes to 15 653s # GLib-DEBUG: io-channel-basic: ...from 14: IN 653s # GLib-DEBUG: io-channel-basic: ...from 14: 131 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 14: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+2604 bytes to 17 653s # GLib-DEBUG: io-channel-basic: ...from 16: IN 653s # GLib-DEBUG: io-channel-basic: ...from 16: 2604 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 16: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+476 bytes to 9 653s # GLib-DEBUG: io-channel-basic: ...from 8: IN 653s # GLib-DEBUG: io-channel-basic: ...from 8: 476 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 8: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4540 bytes to 13 653s # GLib-DEBUG: io-channel-basic: ...from 12: IN 653s # GLib-DEBUG: io-channel-basic: ...from 12: 4540 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 12: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4850 bytes to 11 653s # GLib-DEBUG: io-channel-basic: ...from 10: IN 653s # GLib-DEBUG: io-channel-basic: ...from 10: 4850 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 10: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+3316 bytes to 17 653s # GLib-DEBUG: io-channel-basic: ...from 16: IN 653s # GLib-DEBUG: io-channel-basic: ...from 16: 3316 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 16: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4244 bytes to 15 653s # GLib-DEBUG: io-channel-basic: ...from 14: IN 653s # GLib-DEBUG: io-channel-basic: ...from 14: 4244 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 14: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4924 bytes to 9 653s # GLib-DEBUG: io-channel-basic: ...from 8: IN 653s # GLib-DEBUG: io-channel-basic: ...from 8: 4924 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 8: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+3721 bytes to 13 653s # GLib-DEBUG: io-channel-basic: ...from 12: IN 653s # GLib-DEBUG: io-channel-basic: ...from 12: 3721 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 12: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+911 bytes to 11 653s # GLib-DEBUG: io-channel-basic: ...from 10: IN 653s # GLib-DEBUG: io-channel-basic: ...from 10: 911 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 10: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+3312 bytes to 17 653s # GLib-DEBUG: io-channel-basic: ...from 16: IN 653s # GLib-DEBUG: io-channel-basic: ...from 16: 3312 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 16: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+3920 bytes to 9 653s # GLib-DEBUG: io-channel-basic: ...from 8: IN 653s # GLib-DEBUG: io-channel-basic: ...from 8: 3920 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 8: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+304 bytes to 15 653s # GLib-DEBUG: io-channel-basic: ...from 14: IN 653s # GLib-DEBUG: io-channel-basic: ...from 14: 304 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 14: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4334 bytes to 13 653s # GLib-DEBUG: io-channel-basic: ...from 12: IN 653s # GLib-DEBUG: io-channel-basic: ...from 12: 4334 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 12: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4980 bytes to 11 653s # GLib-DEBUG: io-channel-basic: ...from 10: IN 653s # GLib-DEBUG: io-channel-basic: ...from 10: 4980 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 10: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+2209 bytes to 17 653s # GLib-DEBUG: io-channel-basic: ...from 16: IN 653s # GLib-DEBUG: io-channel-basic: ...from 16: 2209 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 16: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+4464 bytes to 15 653s # GLib-DEBUG: io-channel-basic: ...from 14: IN 653s # GLib-DEBUG: io-channel-basic: ...from 14: 4464 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 14: OK 653s # GLib-DEBUG: io-channel-basic: child writing 8+3241 bytes to 9 653s # GLib-DEBUG: io-channel-basic: ...from 8: IN 653s # GLib-DEBUG: io-channel-basic: ...from 8: 3241 bytes 653s # GLib-DEBUG: io-channel-basic: ...from 8: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+3854 bytes to 13 654s # GLib-DEBUG: io-channel-basic: ...from 12: IN 654s # GLib-DEBUG: io-channel-basic: ...from 12: 3854 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 12: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+2123 bytes to 11 654s # GLib-DEBUG: io-channel-basic: ...from 10: IN 654s # GLib-DEBUG: io-channel-basic: ...from 10: 2123 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 10: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+2916 bytes to 17 654s # GLib-DEBUG: io-channel-basic: ...from 16: IN 654s # GLib-DEBUG: io-channel-basic: ...from 16: 2916 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 16: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+1612 bytes to 9 654s # GLib-DEBUG: io-channel-basic: ...from 8: IN 654s # GLib-DEBUG: io-channel-basic: ...from 8: 1612 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 8: OK 654s # Executing: glib/io-channel-basic.test 654s # GLib-DEBUG: io-channel-basic: child writing 8+2380 bytes to 15 654s # GLib-DEBUG: io-channel-basic: ...from 14: IN 654s # GLib-DEBUG: io-channel-basic: ...from 14: 2380 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 14: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+1387 bytes to 13 654s # GLib-DEBUG: io-channel-basic: ...from 12: IN 654s # GLib-DEBUG: io-channel-basic: ...from 12: 1387 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 12: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+3837 bytes to 11 654s # GLib-DEBUG: io-channel-basic: ...from 10: IN 654s # GLib-DEBUG: io-channel-basic: ...from 10: 3837 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 10: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+2151 bytes to 17 654s # GLib-DEBUG: io-channel-basic: ...from 16: IN 654s # GLib-DEBUG: io-channel-basic: ...from 16: 2151 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 16: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+3905 bytes to 9 654s # GLib-DEBUG: io-channel-basic: ...from 8: IN 654s # GLib-DEBUG: io-channel-basic: ...from 8: 3905 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 8: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+3467 bytes to 15 654s # GLib-DEBUG: io-channel-basic: ...from 14: IN 654s # GLib-DEBUG: io-channel-basic: ...from 14: 3467 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 14: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+2923 bytes to 13 654s # GLib-DEBUG: io-channel-basic: ...from 12: IN 654s # GLib-DEBUG: io-channel-basic: ...from 12: 2923 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 12: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+764 bytes to 11 654s # GLib-DEBUG: io-channel-basic: ...from 10: IN 654s # GLib-DEBUG: io-channel-basic: ...from 10: 764 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 10: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+1571 bytes to 17 654s # GLib-DEBUG: io-channel-basic: ...from 16: IN 654s # GLib-DEBUG: io-channel-basic: ...from 16: 1571 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 16: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+1142 bytes to 9 654s # GLib-DEBUG: io-channel-basic: ...from 8: IN 654s # GLib-DEBUG: io-channel-basic: ...from 8: 1142 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 8: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+4796 bytes to 15 654s # GLib-DEBUG: io-channel-basic: ...from 14: IN 654s # GLib-DEBUG: io-channel-basic: ...from 14: 4796 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 14: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+1715 bytes to 13 654s # GLib-DEBUG: io-channel-basic: ...from 12: IN 654s # GLib-DEBUG: io-channel-basic: ...from 12: 1715 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 12: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+46 bytes to 11 654s # GLib-DEBUG: io-channel-basic: ...from 10: IN 654s # GLib-DEBUG: io-channel-basic: ...from 10: 46 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 10: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+422 bytes to 17 654s # GLib-DEBUG: io-channel-basic: ...from 16: IN 654s # GLib-DEBUG: io-channel-basic: ...from 16: 422 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 16: OK 654s # GLib-DEBUG: io-channel-basic: child writing 8+967 bytes to 9 654s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 654s # GLib-DEBUG: io-channel-basic: ...from 8: IN 654s # GLib-DEBUG: io-channel-basic: ...from 8: 967 bytes 654s # GLib-DEBUG: io-channel-basic: ...from 8: OK 654s # GLib-DEBUG: io-channel-basic: ...from 8: HUP 655s # GLib-DEBUG: io-channel-basic: child writing 8+2507 bytes to 15 655s # GLib-DEBUG: io-channel-basic: ...from 14: IN 655s # GLib-DEBUG: io-channel-basic: ...from 14: 2507 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 14: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+2116 bytes to 13 655s # GLib-DEBUG: io-channel-basic: ...from 12: IN 655s # GLib-DEBUG: io-channel-basic: ...from 12: 2116 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 12: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+4936 bytes to 11 655s # GLib-DEBUG: io-channel-basic: ...from 10: IN 655s # GLib-DEBUG: io-channel-basic: ...from 10: 4936 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 10: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+3646 bytes to 17 655s # GLib-DEBUG: io-channel-basic: ...from 16: IN 655s # GLib-DEBUG: io-channel-basic: ...from 16: 3646 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 16: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+3369 bytes to 15 655s # GLib-DEBUG: io-channel-basic: ...from 14: IN 655s # GLib-DEBUG: io-channel-basic: ...from 14: 3369 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 14: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+4381 bytes to 13 655s # GLib-DEBUG: io-channel-basic: ...from 12: IN 655s # GLib-DEBUG: io-channel-basic: ...from 12: 4381 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 12: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+1689 bytes to 17 655s # GLib-DEBUG: io-channel-basic: ...from 16: IN 655s # GLib-DEBUG: io-channel-basic: ...from 16: 1689 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 16: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+3689 bytes to 11 655s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 655s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 655s # GLib-DEBUG: io-channel-basic: ...from 10: 3689 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 10: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+903 bytes to 15 655s # GLib-DEBUG: io-channel-basic: ...from 14: IN 655s # GLib-DEBUG: io-channel-basic: ...from 14: 903 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 14: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+762 bytes to 13 655s # GLib-DEBUG: io-channel-basic: ...from 12: IN 655s # GLib-DEBUG: io-channel-basic: ...from 12: 762 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 12: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+4894 bytes to 17 655s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 655s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 655s # GLib-DEBUG: io-channel-basic: ...from 16: 4894 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 16: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+3209 bytes to 15 655s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 655s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 655s # GLib-DEBUG: io-channel-basic: ...from 14: 3209 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 14: OK 655s # GLib-DEBUG: io-channel-basic: child writing 8+4887 bytes to 13 655s # GLib-DEBUG: io-channel-basic: ...from 12: IN 655s # GLib-DEBUG: io-channel-basic: ...from 12: 4887 bytes 655s # GLib-DEBUG: io-channel-basic: ...from 12: OK 656s ok - glib/io-channel-basic.test 656s # Running test: glib/dynamictype.test 656s # GLib-DEBUG: io-channel-basic: child writing 8+4882 bytes to 13 656s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 656s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 656s # GLib-DEBUG: io-channel-basic: ...from 12: 4882 bytes 656s # GLib-DEBUG: io-channel-basic: ...from 12: OK 656s ok 1 /gio/io-basics 656s # slow test /gio/io-basics executed in 12.98 secs 656s # End of gio tests 656s ok - glib/dynamictype.test 656s TAP version 14 656s # random seed: R02S8c4cf888df171f49d7304fe7ec777c7c 656s 1..2 656s # Start of gobject tests 656s ok 1 /gobject/dynamic-type 656s # Start of dynamic-type tests 656s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 656s ok 2 /gobject/dynamic-type/query 656s # End of dynamic-type tests 656s # End of gobject tests 656s # Running test: glib/file-enumerator.test 656s ok - glib/file-enumerator.test 656s TAP version 14 656s # random seed: R02S00a50014b2300bb8ad3ed86ffd9ce512 656s 1..1 656s # Start of file-enumerator tests 656s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 656s ok 1 /file-enumerator/close-on-dispose 656s # End of file-enumerator tests 656s # Running test: glib/assert-msg-test.py.test 656s TAP version 13 656s ok 1 __main__.TestAssertMessage.test_gassert 656s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 656s # tmpdir: /tmp/tmpzdpbsnh4 656s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 656s # Return code: -6 656s # Output: 656s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 656s # Error: 656s # ** 656s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 656s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 656s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 656s # tmpdir: /tmp/tmpec4fc0r7 656s 1..2 656s TAP version 14 656s # random seed: R02Sba13631a727064235fc6b4df4192f385 656s 1..2 656s # Start of gtask tests 656s # 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. 656s ok 1 /gtask/name 656s # Start of name tests 656s # 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. 656s ok 2 /gtask/name/macro-wrapper 656s # End of name tests 656s # End of gtask tests 656s TAP version 14 656s # random seed: R02Sb9490a1e4b44c9e159d5129de0d2db88 656s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 656s 1..2 656s # Start of g-file-info-filesystem-readonly tests 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 656s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_B02ME3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 656s ok - glib/assert-msg-test.py.test 656s # Running test: glib/cxx-17.test 656s ok - glib/cxx-17.test 656s # Running test: glib/g-file-info-filesystem-readonly.test 656s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 656s # End of g-file-info-filesystem-readonly tests 656s ok - glib/g-file-info-filesystem-readonly.test 656s # Running test: glib/gdbus-peer.test 656s TAP version 14 656s # random seed: R02S8e790bdef6f3b1c8667d430316c53370 656s 1..12 656s # Start of gdbus tests 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/.dirs/runtime 656s # Testing with unix:dir address 656s # Testing with unix:tmpdir address 656s # Testing with unix:path address 656s ok 1 /gdbus/peer-to-peer 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/delayed-message-processing/.dirs/runtime 656s # Testing with unix:dir address 656s ok 2 /gdbus/delayed-message-processing 656s # slow test /gdbus/delayed-message-processing executed in 0.50 secs 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/nonce-tcp/.dirs/runtime 656s ok 3 /gdbus/nonce-tcp 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/tcp-anonymous/.dirs/runtime 656s ok 4 /gdbus/tcp-anonymous 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/credentials/.dirs/runtime 656s ok 5 /gdbus/credentials 656s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/home 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/cache 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/system-config2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/config 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/system-data2 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/data 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/state 656s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/codegen-peer-to-peer/.dirs/runtime 656s # Testing with unix:dir address 656s # Machine ID: 0e77866bd0cc42519935e485932ccf97 657s ok 6 /gdbus/codegen-peer-to-peer 657s # slow test /gdbus/codegen-peer-to-peer executed in 1.10 secs 657s # Start of peer-to-peer tests 657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/home 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/cache 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/system-config2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/config 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/system-data2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/data 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/state 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/signals/.dirs/runtime 657s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 657s # Testing with unix:dir address 657s ok 7 /gdbus/peer-to-peer/signals 657s # Start of invalid tests 657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/home 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/cache 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/config 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/data 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/state 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 657s ok 8 /gdbus/peer-to-peer/invalid/server 657s # Start of conn tests 657s # Start of stream tests 657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 657s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 657s ok - glib/gdbus-peer.test 657s # Running test: glib/test-printf.test 657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 657s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 657s # End of stream tests 657s # Start of addr tests 657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 657s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 657s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 657s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_J84ME3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 657s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 657s # End of addr tests 657s # End of conn tests 657s # End of invalid tests 657s # End of peer-to-peer tests 657s # End of gdbus tests 657s TAP version 14 657s # random seed: R02S03f2f5fa28057a50f8d38d8392090fab 657s 1..24 657s # Start of snprintf tests 657s ok 1 /snprintf/retval-and-trunc 657s ok 2 /snprintf/%d 657s ok 3 /snprintf/%d-invalid 657s ok 4 /snprintf/%o 657s ok 5 /snprintf/%u 657s ok 6 /snprintf/%x 657s ok 7 /snprintf/%X 657s ok 8 /snprintf/%f 657s ok 9 /snprintf/%e 657s ok 10 /snprintf/%c 657s ok 11 /snprintf/%s 657s ok 12 /snprintf/%n 657s ok 13 /snprintf/test-percent 657s ok 14 /snprintf/test-positional-params 657s ok 15 /snprintf/test-64bit 657s ok 16 /snprintf/produce-embedded-nulls 657s # End of snprintf tests 657s # Start of printf tests 657s ok 17 /printf/test-percent 657s ok 18 /printf/test-positional-params 657s ok 19 /printf/test-64bit 657s # Start of test-64bit tests 657s # Start of subprocess tests 657s # End of subprocess tests 657s # End of test-64bit tests 657s # End of printf tests 657s # Start of fprintf tests 657s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3761 657s # /fprintf/produce-embedded-nulls summary: printf() functions can produce strings with embedded null characters. That happens when passing individual characters (%c) with value ' 657s ok 20 /fprintf/produce-embedded-nulls 657s # End of fprintf tests 657s # Start of sprintf tests 657s ok - glib/test-printf.test 657s # Running test: glib/signals-refcount3.test 657s ok 21 /sprintf/test-positional-params 657s ok 22 /sprintf/upper-bound 657s # End of sprintf tests 657s # Start of vasprintf tests 657s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 657s ok 23 /vasprintf/invalid-format-placeholder 657s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 657s ok 24 /vasprintf/invalid-wide-string 657s # End of vasprintf tests 657s TAP version 14 657s # random seed: R02S904d726b21e7346f71f4d566da6b3788 657s 1..1 657s # Start of gobject tests 657s # Start of refcount tests 657s # init 0x64ca7b0a8490 657s # 657s # init 0x64ca7b0a0580 657s # 659s # Executing: glib/signals-refcount3.test 662s # dispose 0x64ca7b0a8490! 662s # 662s # dispose 0x64ca7b0a0580! 662s # 662s ok 1 /gobject/refcount/signals 662s # slow test /gobject/refcount/signals executed in 5.00 secs 662s # End of refcount tests 662s # End of gobject tests 662s ok - glib/signals-refcount3.test 662s # Running test: glib/gobject-query.py.test 662s TAP version 13 662s ok 1 __main__.TestGobjectQuery.test_froots 662s # gobject-query: /usr/bin/gobject-query 662s # tmpdir: /tmp/tmp7_8kw3bf 662s # Running: ['/usr/bin/gobject-query', 'froots'] 662s # Return code: 0 662s # Output: 662s # ├void 662s # ├GInterface 662s # │ └GTypePlugin 662s # ├gchar 662s # ├guchar 662s # ├gboolean 662s # ├gint 662s # ├guint 662s # ├glong 662s # ├gulong 662s # ├gint64 662s # ├guint64 662s # ├GEnum 662s # ├GFlags 662s # ├gfloat 662s # ├gdouble 662s # ├gchararray 662s # ├gpointer 662s # │ └GType 662s # ├GBoxed 662s # │ └GValueArray 662s # ├GParam 662s # │ ├GParamChar 662s # │ ├GParamUChar 662s # │ ├GParamBoolean 662s # │ ├GParamInt 662s # │ ├GParamUInt 662s # │ ├GParamLong 662s # │ ├GParamULong 662s # │ ├GParamInt64 662s # │ ├GParamUInt64 662s # │ ├GParamUnichar 662s # │ ├GParamEnum 662s # │ ├GParamFlags 662s # │ ├GParamFloat 662s # │ ├GParamDouble 662s # │ ├GParamString 662s # │ ├GParamParam 662s # │ ├GParamBoxed 662s # │ ├GParamPointer 662s # │ ├GParamValueArray 662s # │ ├GParamObject 662s # │ ├GParamOverride 662s # │ ├GParamGType 662s # │ └GParamVariant 662s # ├GObject 662s # └GVariant 662s # Error: 662s ok 2 __main__.TestGobjectQuery.test_help 662s # gobject-query: /usr/bin/gobject-query 662s # tmpdir: /tmp/tmp7_m7drtl 662s # Running: ['/usr/bin/gobject-query', '--help'] 662s # Return code: 0 662s # Output: 662s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 662s # -r specify root type 662s # -n don't descend type tree 662s # -h show help 662s # -b specify indent string 662s # -i specify incremental indent string 662s # -s specify line spacing 662s # qualifiers: 662s # froots iterate over fundamental roots 662s # tree print type tree 662s # Error: 662s ok 3 __main__.TestGobjectQuery.test_tree 662s # gobject-query: /usr/bin/gobject-query 662s # tmpdir: /tmp/tmp_3dhhkcr 662s # Running: ['/usr/bin/gobject-query', 'tree'] 662s # Return code: 0 662s # Output: 662s # GObject 662s # Error: 662s ok 4 __main__.TestGobjectQuery.test_version 662s # gobject-query: /usr/bin/gobject-query 662s # tmpdir: /tmp/tmp6t3bkgal 662s # Running: ['/usr/bin/gobject-query', '--version'] 662s # Return code: 0 662s # Output: 662s # 2.86.0 662s # Error: 662s 1..4 662s ok - glib/gobject-query.py.test 662s # Running test: glib/glistmodel.test 662s TAP version 14 662s # random seed: R02Sf87079db71c65c84479b841007ac4256 662s 1..18 662s # Start of glistmodel tests 662s # Start of store tests 662s ok 1 /glistmodel/store/properties 662s ok - glib/glistmodel.test 662s # Running test: glib/memchunk.test 662s ok - glib/memchunk.test 662s # Running test: glib/unix-fd.test 662s ok - glib/unix-fd.test 662s # Running test: glib/pathbuf.test 662s ok - glib/pathbuf.test 662s # Running test: glib/reference.test 662s ok 2 /glistmodel/store/non-gobjects 662s ok 3 /glistmodel/store/boundaries 662s ok 4 /glistmodel/store/refcounts 662s ok 5 /glistmodel/store/sorted 662s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 662s ok 6 /glistmodel/store/splice-replace-middle 662s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 662s ok 7 /glistmodel/store/splice-replace-all 662s ok 8 /glistmodel/store/splice-noop 662s ok 9 /glistmodel/store/splice-remove-multiple 662s ok 10 /glistmodel/store/splice-add-multiple 662s ok 11 /glistmodel/store/splice-wrong-type 662s ok 12 /glistmodel/store/item-type 662s ok 13 /glistmodel/store/remove-all 662s ok 14 /glistmodel/store/sort 662s ok 15 /glistmodel/store/get-item-cache 662s ok 16 /glistmodel/store/items-changed 662s ok 17 /glistmodel/store/past-end 662s ok 18 /glistmodel/store/find 662s # End of store tests 662s # End of glistmodel tests 662s TAP version 14 662s # random seed: R02S04ccf42f47c8b3980607db70620bb8ee 662s 1..1 662s # Start of memchunk tests 662s ok 1 /memchunk/basic 662s # End of memchunk tests 662s TAP version 14 662s # random seed: R02S2193163fa43d5f60c93e1f6a8f278b7c 662s 1..2 662s # Start of unix-fd tests 662s ok 1 /unix-fd/fd-list 662s ok 2 /unix-fd/scm 662s # End of unix-fd tests 662s TAP version 14 662s # random seed: R02Sa7a4281a1523327f328ba2de3705e3dc 662s 1..3 662s # Start of pathbuf tests 662s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/home 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/cache 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/system-config2 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/config 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/system-data2 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/data 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/state 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_9J51E3/pathbuf/init/.dirs/runtime 662s # Initializing empty path buf 662s # Initializing with empty path 662s # Initializing with full path 662s # Initializing with no path 662s # Allocating GPathBuf on the heap 662s ok 1 /pathbuf/init 662s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/home 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/cache 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/system-config2 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/config 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/system-data2 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/data 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/state 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_9J51E3/pathbuf/push-pop/.dirs/runtime 662s # Pushing relative path component 662s # Pushing absolute path component 662s # Popping a path component 662s # Can't pop the last element of a path buffer 662s ok 2 /pathbuf/push-pop 662s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/home 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/cache 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/system-config2 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/config 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/system-data2 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/data 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/state 662s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_9J51E3/pathbuf/filename-extension/.dirs/runtime 662s ok 3 /pathbuf/filename-extension 662s # End of pathbuf tests 662s TAP version 14 662s # random seed: R02Sc88cf219ec5554b2114b398f5d1e5bea 662s 1..29 662s # Start of type tests 662s ok 1 /type/fundamentals 662s ok 2 /type/qdata 662s ok 3 /type/query 662s ok 4 /type/class-private 662s # End of type tests 662s # Start of object tests 662s ok 5 /object/clear 662s ok 6 /object/clear-function 662s ok 7 /object/set 662s ok 8 /object/set-function 662s ok 9 /object/value 662s ok 10 /object/initially-unowned 662s ok 11 /object/weak-pointer 662s ok 12 /object/weak-ref 662s ok 13 /object/toggle-ref 662s ok 14 /object/qdata 662s ok 15 /object/qdata2 662s # Start of set tests 662s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 662s ok 16 /object/set/derived-type 662s # End of set tests 662s # Start of weak-pointer tests 662s ok 17 /object/weak-pointer/clear 662s ok 18 /object/weak-pointer/clear-function 662s ok 19 /object/weak-pointer/set 662s ok 20 /object/weak-pointer/set-function 662s # End of weak-pointer tests 662s # Start of weak-ref tests 662s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 662s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 662s ok 21 /object/weak-ref/on-dispose 662s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 662s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 662s ok 22 /object/weak-ref/on-run-dispose 662s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 662s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 662s ok 23 /object/weak-ref/on-toggle-notify 662s ok 24 /object/weak-ref/in-toggle-notify 662s ok 25 /object/weak-ref/many 662s # Start of concurrent tests 662s ok 26 /object/weak-ref/concurrent/0 662s ok - glib/reference.test 662s ok 27 /object/weak-ref/concurrent/1 662s # End of concurrent tests 662s # End of weak-ref tests 662s # Start of toggle-ref tests 662s ok 28 /object/toggle-ref/ref-on-dispose 662s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 662s # End of toggle-ref tests 662s # End of object tests 663s # Running test: glib/onceinit.test 663s TAP version 14 663s # random seed: R02Sdceae17478b1d644079fd1a6981c40aa 663s 1..1 663s # Start of thread tests 663s ok - glib/onceinit.test 663s ok 1 /thread/onceinit 663s # End of thread tests 663s # Running test: glib/guuid.test 663s TAP version 14 663s # random seed: R02S10146f6b48b2176cb662b0125d9ccaab 663s 1..2 663s # Start of uuid tests 663s ok 1 /uuid/string 663s ok 2 /uuid/random 663s # End of uuid tests 663s ok - glib/guuid.test 663s # Running test: glib/memory-input-stream.test 663s TAP version 14 663s # random seed: R02S7490430fa7c6aedf47c3c73c87657778 663s 1..6 663s # Start of memory-input-stream tests 663s ok 1 /memory-input-stream/read-chunks 663s ok - glib/memory-input-stream.test 663s # Running test: glib/properties-refcount1.test 663s ok 2 /memory-input-stream/async 663s ok 3 /memory-input-stream/seek 663s ok 4 /memory-input-stream/truncate 663s ok 5 /memory-input-stream/read-bytes 663s ok 6 /memory-input-stream/from-bytes 663s # End of memory-input-stream tests 663s TAP version 14 663s # random seed: R02S4a8b2421e461c5d1f895ccf4be7b675c 663s 1..1 663s # Start of gobject tests 663s # Start of refcount tests 663s # .e 663s # .d 663s # .b 663s # .e 663s # .d 663s # .f 663s # .c 663s # .f 663s # .e 663s # .b 663s # .c 663s # .d 663s # .d 663s # .f 663s # .e 663s # .b 663s # .d 663s # .c 663s # .e 663s # .f 663s # .e 663s # .b 663s # .c 663s # .f 663s # .d 663s # .b 663s # .f 663s # .c 663s # .b 663s # .e 663s # .c 663s # .b 663s # .d 663s # .e 663s # .f 663s # .c 663s # .c 663s # .b 663s # .d 663s # .e 663s # .f 663s # .d 663s # .e 663s # .b 663s # .f 663s # .d 663s # .c 663s # .b 663s # .e 663s # .e 663s # .d 663s # .f 663s # .c 663s # .f 663s # .d 663s # .c 663s # .b 663s # .e 663s # .f 663s # .d 663s # .f 663s # .c 663s # .e 663s # .d 663s # .b 663s # .f 663s # .e 663s # .c 663s # .f 663s # .c 663s # .d 663s # .e 663s # .b 663s # .e 663s # .d 663s # .c 663s # .f 663s # .e 663s # .d 663s # .b 663s # .c 663s # .d 663s # .b 663s # .e 663s # .f 663s # .d 663s # .c 663s # .f 663s # .e 663s # .c 663s # .c 663s # .d 663s # .b 663s # .e 663s # .d 663s # .b 663s # .f 663s # .e 663s # .c 663s # .b 663s # .f 663s # .c 663s # .e 663s # .d 663s # .f 663s # .e 663s # .d 663s # .f 663s # .c 663s # .b 663s # .c 663s # .f 663s # .e 663s # .b 663s # .f 663s # .c 663s # .e 663s # .d 664s # .b 664s # .c 664s # .d 664s # .f 664s # .b 664s # .c 664s # .f 664s # .e 664s # .d 664s # .f 664s # .b 664s # .f 664s # .b 664s # .f 664s # .c 664s # .b 664s # .e 664s # .d 664s # .f 664s # .c 664s # .e 664s # .d 664s # .b 664s # .d 664s # .e 664s # Executing: glib/properties-refcount1.test 664s # .c 664s # .d 664s # .f 664s # .c 664s # .b 664s # .d 664s # .e 664s # .c 664s # .d 664s # .b 664s # .f 664s # .c 664s # .c 664s # .d 664s # .e 664s # .c 664s # .b 664s # .b 664s # .c 664s # .f 664s # .b 664s # .c 664s # .e 664s # .d 664s # .e 664s # .c 664s # .e 664s # .d 664s # .b 664s # .f 664s # .d 664s # .c 664s # .e 664s # .b 664s # .d 664s # .f 664s # .b 664s # .c 664s # .e 664s # .d 664s # .e 664s # .d 664s # .e 664s # .c 664s # .b 664s # .d 664s # .f 664s # .e 664s # .c 664s # .d 664s # .e 664s # .b 664s # .b 664s # .d 664s # .f 664s # .e 664s # .b 664s # .c 664s # .f 664s # .e 664s # .d 664s # .f 664s # .b 664s # .c 664s # .e 664s # .b 664s # .f 664s # .d 664s # .b 664s # .d 664s # .e 664s # .f 664s # .c 664s # .b 664s # .c 664s # .e 664s # .d 664s # .f 664s # .c 664s # .f 664s # .b 664s # .d 664s # .e 664s # .d 664s # .c 664s # .f 664s # .c 664s # .b 664s # .d 664s # .e 664s # .c 664s # .b 664s # .d 664s # .c 664s # .b 664s # .f 664s # .e 664s # .b 664s # .c 664s # .b 664s # .e 664s # .d 664s # .c 664s # .f 664s # .e 664s # .b 664s # .f 664s # .e 665s # .c 665s # .f 665s # .b 665s # .d 665s # .f 665s # .e 665s # .d 665s # .b 665s # .e 665s # .f 665s # .b 665s # .c 665s # .d 665s # .f 665s # .d 665s # .e 665s # .c 665s # .f 665s # .c 665s # .b 665s # .d 665s # .c 665s # .e 665s # .b 665s # .f 665s # .b 665s # .e 665s # .d 665s # .c 665s # .d 665s # .e 665s # .c 665s # .b 665s # .c 665s # .f 665s # .d 665s # .e 665s # .d 665s # .c 665s # .f 665s # .b 665s # .d 665s # .f 665s # .e 665s # .f 665s # .b 665s # .c 665s # .d 665s # .b 665s # .e 665s # .c 665s # .d 665s # .f 665s # .d 665s # .b 665s # .e 665s # .c 665s # .d 665s # .f 665s # .d 665s # .b 665s # .e 665s # .c 665s # .e 665s # .c 665s # .f 665s # .d 665s # .c 665s # .b 665s # .d 665s # .e 665s # .f 665s # .c 665s # .c 665s # .d 665s # .b 665s # .f 665s # .e 665s # .c 665s # .b 665s # .d 665s # .e 665s # .b 665s # .c 665s # .f 665s # .c 665s # .e 665s # .d 665s # .f 665s # .c 665s # .b 665s # .d 665s # .c 665s # .c 665s # .e 665s # .c 665s # .f 665s # .d 665s # .b 665s # .c 665s # .e 665s # .d 665s # .b 665s # .f 665s # .c 665s # .e 665s # .d 665s # .c 665s # .c 665s # .e 665s # .f 665s # .b 665s # .d 665s # .b 665s # .e 665s # .f 665s # .e 665s # .d 665s # .b 665s # .c 665s # .f 665s # .e 665s # .b 665s # .e 665s # .d 665s # .f 665s # .b 665s # .c 665s # .d 665s # .b 665s # .c 665s # .e 666s # .f 666s # .b 666s # .e 666s # .c 666s # .d 666s # .c 666s # .c 666s # .f 666s # .e 666s # .d 666s # .b 666s ok 1 /gobject/refcount/properties-1 666s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 666s # End of refcount tests 666s # End of gobject tests 666s ok - glib/properties-refcount1.test 666s # Running test: glib/autoptr-gio.test 666s TAP version 14 666s # random seed: R02Sfb3c59095d6531f55b87a884eea005b2 666s 1..1 666s # Start of autoptr tests 666s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 666s ok 1 /autoptr/autoptr 666s ok - glib/autoptr-gio.test 666s # Running test: glib/unicode-normalize.test 666s # End of autoptr tests 666s TAP version 14 666s # random seed: R02Scdeb429b242fe66150fb902eb1ed1588 666s 1..3 666s # Start of unicode tests 666s # Processing Part0 # Specific cases 666s # Processing Part1 # Character by character test 666s # Processing Part2 # Canonical Order Test 666s # Processing Part3 # PRI #29 Test 666s # Processing Part4 # Canonical closures (excluding Hangul) 666s # Processing Part5 # Chained primary composites 666s ok 1 /unicode/normalize 666s # Invalid UTF-8 vector 0 666s # Invalid UTF-8 vector 1 666s # Invalid UTF-8 vector 2 666s # Invalid UTF-8 vector 3 666s # Invalid UTF-8 vector 4 666s # Invalid UTF-8 vector 5 666s # Invalid UTF-8 vector 6 666s # Invalid UTF-8 vector 7 666s # Invalid UTF-8 vector 8 666s # Invalid UTF-8 vector 9 666s # Invalid UTF-8 vector 10 666s # Invalid UTF-8 vector 11 666s # Invalid UTF-8 vector 12 666s ok 2 /unicode/normalize-invalid 666s # Start of normalize tests 666s ok 3 /unicode/normalize/bad-length 666s # End of normalize tests 666s # End of unicode tests 666s ok - glib/unicode-normalize.test 666s # Running test: glib/utils-c-11.test 666s TAP version 14 666s # random seed: R02S67031cb0b09725aeaa469ed6bea441a3 666s 1..41 666s # Start of utils tests 666s ok 1 /utils/language-names 666s # Testing locale ‘en’ 666s # Testing locale ‘sr@latin’ 666s # Testing locale ‘fr_BE’ 666s # Testing locale ‘sr_SR@latin’ 666s # Testing locale ‘sr_SR@latin.UTF-8’ 666s # Testing locale ‘sr@latin_invalid’ 666s # Testing locale ‘sr.UTF-8@latin’ 666s # Testing locale ‘sr.UTF-8_latin’ 666s # Testing locale ‘sr.UTF-8@latin_invalid’ 666s ok 2 /utils/locale-variants 666s ok 3 /utils/version 666s ok 4 /utils/appname 666s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 666s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 666s ok 5 /utils/prgname-thread-safety 666s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 666s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 666s ok 6 /utils/tmpdir 666s ok 7 /utils/basic_bits 666s ok 8 /utils/bits 666s ok 9 /utils/swap 666s ok 10 /utils/find-program 666s ok 11 /utils/find-program-for-path 666s ok 12 /utils/debug 666s ok 13 /utils/codeset 666s ok 14 /utils/codeset2 666s ok 15 /utils/console-charset 666s ok 16 /utils/gettext 666s ok 17 /utils/username 666s ok 18 /utils/realname 666s ok 19 /utils/hostname 666s ok 20 /utils/xdgdirs 666s ok 21 /utils/specialdir 666s # NAME: Ubuntu 666s ok 22 /utils/os-info 666s ok 23 /utils/clear-pointer 666s ok 24 /utils/clear-pointer-cast 666s ok 25 /utils/take-pointer 666s ok 26 /utils/clear-source 666s ok 27 /utils/misc-mem 666s # /utils/aligned-mem summary: Aligned memory allocator 666s # Alignment must not be zero 666s # Alignment must be a power of two 666s # Alignment must be a multiple of sizeof(void*) 666s ok 28 /utils/aligned-mem 666s # /utils/free-sized summary: Check that g_free_sized() works 666s ok 29 /utils/free-sized 666s ok 30 /utils/nullify 666s ok 31 /utils/atexit 666s ok 32 /utils/check-setuid 666s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 666s ok 33 /utils/int-limits 666s ok 34 /utils/clear-list 666s ok 35 /utils/clear-slist 666s ok 36 /utils/steal-handle-id 666s # Start of specialdir tests 666s ok 37 /utils/specialdir/desktop 666s # End of specialdir tests 666s # Start of clear-pointer tests 666s ok 38 /utils/clear-pointer/side-effects 666s # End of clear-pointer tests 666s # Start of aligned-mem tests 666s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 666s ok 39 /utils/aligned-mem/alignment 666s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 666s ok 40 /utils/aligned-mem/zeroed 666s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 666s ok 41 /utils/aligned-mem/free-sized 666s # Start of subprocess tests 666s # End of subprocess tests 666s # End of aligned-mem tests 666s # End of utils tests 666s TAP version 14 666s # random seed: R02S1b34d44196bbf47b9e6c834ef689ed46 666s 1..1 666s # Start of monitor tests 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/state 666s ok - glib/utils-c-11.test 666s # Running test: glib/appmonitor.test 666s ok - glib/appmonitor.test 666s # Running test: glib/gdbus-connection.test 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/runtime 666s # Using data directory: /tmp/test_appmonitor_T3BVE3/monitor/app/.dirs/data 666s ok 1 /monitor/app 666s # End of monitor tests 666s TAP version 14 666s # random seed: R02Sa1620112ef8b591c14ac0f048ead402b 666s 1..9 666s # Start of gdbus tests 666s # Start of connection tests 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/bus-failure/.dirs/runtime 666s ok 1 /gdbus/connection/bus-failure 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/basic/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 2 /gdbus/connection/basic 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/life-cycle/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 3 /gdbus/connection/life-cycle 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/send/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 4 /gdbus/connection/send 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signals/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 5 /gdbus/connection/signals 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/signal-match-rules/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 6 /gdbus/connection/signal-match-rules 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/filter/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 7 /gdbus/connection/filter 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/serials/.dirs/runtime 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 8 /gdbus/connection/serials 666s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/home 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/cache 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/system-config2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/config 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/system-data2 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/data 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/state 666s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_GGRVE3/gdbus/connection/cancel/.dirs/runtime 666s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 9 /gdbus/connection/cancel 666s # End of connection tests 666s # End of gdbus tests 666s ok - glib/gdbus-connection.test 666s # Running test: glib/tls-interaction.test 666s TAP version 14 666s # random seed: R02S05a960903a6a2f15801553755a63eda8 666s 1..42 666s # Start of tls-interaction tests 666s # Start of ask-password tests 666s # Start of invoke-with-loop tests 666s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 666s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 666s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 666s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 666s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 666s # End of invoke-with-loop tests 666s # Start of invoke-without-loop tests 666s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 666s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 666s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 666s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 666s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 666s # End of invoke-without-loop tests 666s # Start of invoke-in-loop tests 666s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 666s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 666s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 666s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 666s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 666s # End of invoke-in-loop tests 666s # Start of sync tests 666s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 666s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 666s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 666s # End of sync tests 666s # Start of async tests 666s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 666s ok 20 /tls-interaction/ask-password/async/async-implementation-success 666s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 666s # End of async tests 666s # End of ask-password tests 666s # Start of request-certificate tests 666s # Start of invoke-with-loop tests 666s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 666s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 666s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 666s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 666s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 666s # End of invoke-with-loop tests 666s # Start of invoke-without-loop tests 666s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 666s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 666s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 666s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 666s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 666s # End of invoke-without-loop tests 666s # Start of invoke-in-loop tests 666s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 666s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 666s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 666s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 666s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 666s # End of invoke-in-loop tests 666s # Start of sync tests 666s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 666s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 666s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 666s # End of sync tests 666s # Start of async tests 666s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 666s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 666s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 666s # End of async tests 666s # End of request-certificate tests 666s # End of tls-interaction tests 666s ok - glib/tls-interaction.test 666s # Running test: glib/actions.test 666s TAP version 14 666s # random seed: R02S17aed51cd8cf6d51c3650eb746f81f74 666s 1..13 666s # Start of actions tests 666s ok 1 /actions/basic 666s ok 2 /actions/name 666s ok 3 /actions/simplegroup 666s ok 4 /actions/stateful 666s ok 5 /actions/default-activate 666s ok 6 /actions/entries 666s ok 7 /actions/parse-detailed 666s ok 8 /actions/property 666s ok 9 /actions/no-properties 666s # Start of dbus tests 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 10 /actions/dbus/export 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 11 /actions/dbus/threaded 666s # slow test /actions/dbus/threaded executed in 0.64 secs 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 12 /actions/dbus/bug679509 666s # Start of export tests 666s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 666s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 666s ok 13 /actions/dbus/export/error-handling 666s # End of export tests 666s # End of dbus tests 666s # End of actions tests 666s ok - glib/actions.test 666s # Running test: glib/macros-c-11.test 666s TAP version 14 666s ok - glib/macros-c-11.test 666s # random seed: R02Sea9cac14da89b884a3320dc1e57b9ab9 666s 1..4 666s # Start of C tests 666s ok 1 /C/standard-11 666s # End of C tests 666s # Start of alignof tests 666s ok 2 /alignof/fallback 666s # End of alignof tests 666s # Start of assert tests 666s ok 3 /assert/static 666s # End of assert tests 666s # Start of struct tests 666s ok 4 /struct/sizeof_member 666s # End of struct tests 666s # Running test: glib/contenttype.test 666s TAP version 14 666s # random seed: R02Se37a2b5176794d2860b7973ea3664996 666s 1..14 666s # Start of contenttype tests 666s ok 1 /contenttype/guess 666s ok 2 /contenttype/guess_svg_from_data 666s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 666s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 666s ok 5 /contenttype/unknown 666s ok 6 /contenttype/subtype 667s ok 7 /contenttype/list 667s ok 8 /contenttype/executable 667s ok 9 /contenttype/description 667s ok 10 /contenttype/icon 667s ok 11 /contenttype/symbolic-icon 667s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 667s ok 12 /contenttype/tree 667s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 667s ok 13 /contenttype/tree_invalid_encoding 667s ok - glib/contenttype.test 667s # Running test: glib/macros-c-17.test 667s ok - glib/macros-c-17.test 667s # Running test: glib/testing-nonfatal.test 667s ok - glib/testing-nonfatal.test 667s # Running test: glib/cxx-14.test 667s ok - glib/cxx-14.test 667s # Running test: glib/sleepy-stream.test 667s ok - glib/sleepy-stream.test 667s # SUMMARY: total=330; passed=329; skipped=1; failed=0; user=156.1s; system=67.8s; maxrss=164348 667s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 667s ok 14 /contenttype/test_type_is_a_special_case 667s # End of contenttype tests 667s TAP version 14 667s # random seed: R02S5ba97f25c3e63206422b93a398ffa2b5 667s 1..4 667s # Start of C tests 667s ok 1 /C/standard-17 667s # End of C tests 667s # Start of alignof tests 667s ok 2 /alignof/fallback 667s # End of alignof tests 667s # Start of assert tests 667s ok 3 /assert/static 667s # End of assert tests 667s # Start of struct tests 667s ok 4 /struct/sizeof_member 667s # End of struct tests 667s TAP version 14 667s # random seed: R02Sec7c980dbd25dff03124d27584053e4e 667s ** 667s GLib:ERROR:../../../glib/tests/testing-nonfatal.c:26:main: assertion failed ("We can survive this!" == "Or maybe not?"): ("We can survive this!" == "Or maybe not?") 667s # GLib:ERROR:../../../glib/tests/testing-nonfatal.c:26:main: assertion failed ("We can survive this!" == "Or maybe not?"): ("We can survive this!" == "Or maybe not?") 667s TAP version 14 667s # random seed: R02Sfbaba65df11313dcf93123f1959f1a14 667s 1..2 667s # Start of gtask tests 667s # 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. 667s ok 1 /gtask/name 667s # Start of name tests 667s # 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. 667s ok 2 /gtask/name/macro-wrapper 667s # End of name tests 667s # End of gtask tests 667s TAP version 14 667s # random seed: R02S91dd817f5d0129da19a5a7aab2cada83 667s 1..2 667s # Start of filter-stream tests 667s ok 1 /filter-stream/input 667s ok 2 /filter-stream/async 667s # End of filter-stream tests 667s autopkgtest [23:23:48]: test installed-tests: -----------------------] 668s autopkgtest [23:23:49]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 668s installed-tests PASS 668s autopkgtest [23:23:49]: test closure-refcount: preparing testbed 668s Reading package lists... 668s Building dependency tree... 668s Reading state information... 668s Solving dependencies... 669s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 669s autopkgtest [23:23:50]: test closure-refcount: [----------------------- 669s Running test: glib/closure-refcount.test 669s TAP version 14 669s # random seed: R02S3dbc834fc2f2008542c04fe323cd6854 669s 1..1 669s # Start of closure tests 669s # Init 0x605656828db0 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from thread2 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from thread1 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from main thread 669s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread1 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from thread2 670s # Yielding from main thread 670s # Yielding from main thread 670s # Yielding from main thread 670s # Stopping 670s # Stopped 670s ok 1 /closure/refcount 670s # slow test /closure/refcount executed in 1.18 secs 670s # End of closure tests 670s PASS: glib/closure-refcount.test 670s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.3s; system=0.0s; maxrss=3892 671s autopkgtest [23:23:52]: test closure-refcount: -----------------------] 671s closure-refcount PASS 671s autopkgtest [23:23:52]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 671s autopkgtest [23:23:52]: test debugcontroller: preparing testbed 672s Reading package lists... 672s Building dependency tree... 672s Reading state information... 672s Solving dependencies... 672s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 672s autopkgtest [23:23:53]: test debugcontroller: [----------------------- 673s Running test: glib/debugcontroller.test 673s TAP version 14 673s # random seed: R02Scf76f705b8d088b45ef253a4ea4ac304 673s 1..3 673s # Start of debug-controller tests 673s # Start of dbus tests 673s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 673s # GLib-GIO-DEBUG: Debug output enabled 673s # GLib-GIO-DEBUG: Debug output disabled 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s ok 1 /debug-controller/dbus/basic 673s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s ok 2 /debug-controller/dbus/duplicate 673s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 673s # GLib-GIO-DEBUG: Debug output enabled 673s # GLib-GIO-DEBUG: Debug output disabled 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 673s ok 3 /debug-controller/dbus/properties 673s # End of dbus tests 673s # End of debug-controller tests 673s PASS: glib/debugcontroller.test 673s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=6500 673s autopkgtest [23:23:54]: test debugcontroller: -----------------------] 673s debugcontroller PASS 673s autopkgtest [23:23:54]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 673s autopkgtest [23:23:54]: test gdbus-server-auth: preparing testbed 674s Reading package lists... 674s Building dependency tree... 674s Reading state information... 674s Solving dependencies... 674s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 674s autopkgtest [23:23:55]: test gdbus-server-auth: [----------------------- 675s Running test: glib/gdbus-server-auth.test 675s TAP version 14 675s # random seed: R02S61982784d89b3aa2d6bab4a762d2539e 675s 1..9 675s # Start of gdbus tests 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/.dirs/runtime 675s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-E44SE3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 675s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-E44SE3/dbus-uqnjJtb1 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40019 675s ok 1 /gdbus/server-auth 675s # Start of server-auth tests 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/abstract/.dirs/runtime 675s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-HIOTE3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 675s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-HIOTE3/dbus-OxX0n45R 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40019 675s ok 2 /gdbus/server-auth/abstract 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/tcp/.dirs/runtime 675s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 675s # Connectable address: tcp:host=127.0.0.1,port=42987 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 675s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 675s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 675s ok 3 /gdbus/server-auth/tcp 675s # slow test /gdbus/server-auth/tcp executed in 0.83 secs 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/.dirs/runtime 675s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-EJI1E3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 675s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-EJI1E3/dbus-Dn4Jr1hm 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40019 675s ok 4 /gdbus/server-auth/anonymous 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/.dirs/runtime 675s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-6EC1E3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 675s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-6EC1E3/dbus-FqPJamip 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 675s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40019 675s ok 5 /gdbus/server-auth/external 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/.dirs/runtime 675s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-OWT1E3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 675s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-OWT1E3/dbus-NfxAIoSG 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40019 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 675s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40019 675s ok 6 /gdbus/server-auth/sha1 675s # Start of anonymous tests 675s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/home 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/cache 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/config 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/data 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/state 675s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 675s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 675s # Connectable address: tcp:host=127.0.0.1,port=44391 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 675s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 675s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 675s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 675s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 675s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 676s ok 7 /gdbus/server-auth/anonymous/tcp 676s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.82 secs 676s # End of anonymous tests 676s # Start of external tests 676s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/home 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/cache 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/config 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/data 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/state 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/external/require-same-user/.dirs/runtime 676s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-V52XE3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 676s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_864SE3/gdbus-server-auth-V52XE3/dbus-dqgd68r3 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40019 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 676s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40019,uid=1000,gid=1000 676s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40019 676s ok 8 /gdbus/server-auth/external/require-same-user 676s # End of external tests 676s # Start of sha1 tests 676s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/home 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/cache 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/config 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/data 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/state 676s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_864SE3/gdbus/server-auth/sha1/tcp/.dirs/runtime 676s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 676s # Connectable address: tcp:host=127.0.0.1,port=34711 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 676s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 676s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 676s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 676s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 676s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 677s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 677s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 677s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 677s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 677s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 677s ok 9 /gdbus/server-auth/sha1/tcp 677s # slow test /gdbus/server-auth/sha1/tcp executed in 0.82 secs 677s # End of sha1 tests 677s # End of server-auth tests 677s # End of gdbus tests 677s PASS: glib/gdbus-server-auth.test 677s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.1s; maxrss=8524 677s autopkgtest [23:23:58]: test gdbus-server-auth: -----------------------] 678s autopkgtest [23:23:59]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 678s gdbus-server-auth PASS 678s autopkgtest [23:23:59]: test gdbus-threading: preparing testbed 678s Reading package lists... 678s Building dependency tree... 678s Reading state information... 678s Solving dependencies... 678s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 679s autopkgtest [23:24:00]: test gdbus-threading: [----------------------- 679s Running test: glib/gdbus-threading.test 679s TAP version 14 679s # random seed: R02Sb823a7d8933d8ad74f53b28bfd3b043f 679s 1..3 679s # Start of gdbus tests 679s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/home 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/cache 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/system-config2 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/config 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/system-data2 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/data 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/state 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_XJ7KE3/gdbus/delivery-in-thread/.dirs/runtime 679s ok 1 /gdbus/delivery-in-thread 679s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/home 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/cache 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/system-config2 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/config 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/system-data2 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/data 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/state 679s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_XJ7KE3/gdbus/method-calls-in-thread/.dirs/runtime 680s ok 2 /gdbus/method-calls-in-thread 680s # slow test /gdbus/method-calls-in-thread executed in 0.82 secs 680s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/home 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/cache 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/system-config2 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/config 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/system-data2 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/data 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/state 680s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_XJ7KE3/gdbus/threaded-singleton/.dirs/runtime 680s # GLib-GIO-DEBUG: refcount of 0x722a90005bf0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 681s ok 3 /gdbus/threaded-singleton 681s # slow test /gdbus/threaded-singleton executed in 0.51 secs 681s # End of gdbus tests 681s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 681s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 681s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 681s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 681s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 681s PASS: glib/gdbus-threading.test 681s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.2s; maxrss=6368 681s autopkgtest [23:24:02]: test gdbus-threading: -----------------------] 681s gdbus-threading PASS 681s autopkgtest [23:24:02]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 681s autopkgtest [23:24:02]: test gmenumodel: preparing testbed 682s Reading package lists... 682s Building dependency tree... 682s Reading state information... 682s Solving dependencies... 682s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 682s autopkgtest [23:24:03]: test gmenumodel: [----------------------- 683s Running test: glib/gmenumodel.test 683s TAP version 14 683s # random seed: R02Sfa00a3b8772ae791fb1b29c7dd63c5b9 683s 1..15 683s # Start of gmenu tests 683s ok 1 /gmenu/equality 683s ok 2 /gmenu/random 683s ok 3 /gmenu/attributes 683s ok 4 /gmenu/links 683s ok 5 /gmenu/mutable 683s ok 6 /gmenu/convenience 683s ok 7 /gmenu/menuitem 683s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 683s ok 8 /gmenu/input-validation 683s # Start of dbus tests 684s ok 9 /gmenu/dbus/roundtrip 684s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 685s ok 10 /gmenu/dbus/subscriptions 685s ok 11 /gmenu/dbus/threaded 685s # Start of peer tests 686s ok 12 /gmenu/dbus/peer/roundtrip 686s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 686s ok 13 /gmenu/dbus/peer/subscriptions 686s # End of peer tests 686s # Start of export tests 686s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 686s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 686s ok 14 /gmenu/dbus/export/error-handling 686s # End of export tests 686s # End of dbus tests 686s # Start of attributes tests 686s ok 15 /gmenu/attributes/iterate 686s # End of attributes tests 686s # End of gmenu tests 686s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 686s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 686s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 686s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 686s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 686s PASS: glib/gmenumodel.test 686s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.2s; system=0.1s; maxrss=35364 687s autopkgtest [23:24:08]: test gmenumodel: -----------------------] 687s gmenumodel PASS 687s autopkgtest [23:24:08]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 687s autopkgtest [23:24:08]: test mainloop: preparing testbed 688s Reading package lists... 688s Building dependency tree... 688s Reading state information... 688s Solving dependencies... 688s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 688s autopkgtest [23:24:09]: test mainloop: [----------------------- 689s Running test: glib/mainloop.test 689s TAP version 14 689s # random seed: R02S13688d4571d27cee48a1be6d3e87b5eb 689s 1..47 689s # Start of maincontext tests 689s ok 1 /maincontext/basic 689s # Add same-priority sources: 9 689s # Find each source: 1 689s # Remove in random order: 8 689s ok 2 /maincontext/nsources_same_priority 689s # Add different-priority sources: 10 689s # Find each source: 1 689s # Remove in random order: 13 689s ok 3 /maincontext/nsources_different_priority 689s # Add sources from threads: 86 689s # Remove sources from threads: 38 689s ok 4 /maincontext/nsources_threadpool 689s ok 5 /maincontext/source_finalization 689s # /maincontext/idle-once summary: Test g_idle_add_once() works 689s ok 6 /maincontext/idle-once 689s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 689s ok 7 /maincontext/timeout-once 689s # /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. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 689s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 689s # Start of source_finalization_from_source tests 689s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 9 /maincontext/source_finalization_from_source/0 689s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 10 /maincontext/source_finalization_from_source/1 689s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 11 /maincontext/source_finalization_from_source/2 689s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 12 /maincontext/source_finalization_from_source/3 689s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 13 /maincontext/source_finalization_from_source/4 689s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 14 /maincontext/source_finalization_from_source/5 689s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 15 /maincontext/source_finalization_from_source/6 689s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 16 /maincontext/source_finalization_from_source/7 689s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 17 /maincontext/source_finalization_from_source/8 689s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 689s ok 18 /maincontext/source_finalization_from_source/9 689s # End of source_finalization_from_source tests 689s # Start of source_finalization_from_dispatch tests 689s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 689s ok 19 /maincontext/source_finalization_from_dispatch/0 689s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 689s ok 20 /maincontext/source_finalization_from_dispatch/1 689s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 689s ok 21 /maincontext/source_finalization_from_dispatch/2 689s # End of source_finalization_from_dispatch tests 689s # End of maincontext tests 689s # Start of mainloop tests 689s ok 22 /mainloop/basic 689s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 689s ok 24 /mainloop/priorities 689s ok 25 /mainloop/invoke 689s # slow test /mainloop/invoke executed in 0.50 secs 691s ok 26 /mainloop/child_sources 691s # slow test /mainloop/child_sources executed in 1.17 secs 693s ok 27 /mainloop/recursive_child_sources 693s # slow test /mainloop/recursive_child_sources executed in 2.14 secs 693s ok 28 /mainloop/recursive_loop_child_sources 693s ok 29 /mainloop/swapping_child_sources 693s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 693s ok 30 /mainloop/blocked_child_sources 694s Executing: glib/mainloop.test 694s ok 31 /mainloop/source_time 694s # slow test /mainloop/source_time executed in 1.00 secs 694s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 694s ok 32 /mainloop/overflow 694s ok 33 /mainloop/ready-time 694s # slow test /mainloop/ready-time executed in 0.50 secs 694s ok 34 /mainloop/wakeup 694s ok 35 /mainloop/remove-invalid 694s ok 36 /mainloop/unref-while-pending 695s ok 37 /mainloop/unix-fd 695s ok 38 /mainloop/unix-fd-source 695s ok 39 /mainloop/source-unix-fd-api 695s ok 40 /mainloop/wait 695s ok 41 /mainloop/unix-file-poll 695s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 695s ok 42 /mainloop/unix-fd-priority 695s ok 43 /mainloop/nfds 695s ok 44 /mainloop/steal-fd 696s ok 45 /mainloop/simultaneous-source-context-destruction 696s # slow test /mainloop/simultaneous-source-context-destruction executed in 0.94 secs 696s # Start of ownerless-polling tests 696s ok 46 /mainloop/ownerless-polling/attach-first 696s ok 47 /mainloop/ownerless-polling/pop-first 696s # End of ownerless-polling tests 696s # End of mainloop tests 696s PASS: glib/mainloop.test 696s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.8s; system=1.4s; maxrss=17232 696s autopkgtest [23:24:17]: test mainloop: -----------------------] 696s mainloop PASS 696s autopkgtest [23:24:17]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 697s autopkgtest [23:24:18]: test memory-monitor-dbus: preparing testbed 697s Reading package lists... 697s Building dependency tree... 697s Reading state information... 697s Solving dependencies... 697s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 698s autopkgtest [23:24:19]: test memory-monitor-dbus: [----------------------- 698s Running test: glib/memory-monitor-dbus.test 698s TAP version 13 698s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 698s # Received memory warning signal, level 698s # Received memory warning signal, level 698s # Received memory warning signal, level 698s 1..1 698s PASS: glib/memory-monitor-dbus.test 698s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.0s; maxrss=31200 698s autopkgtest [23:24:19]: test memory-monitor-dbus: -----------------------] 699s autopkgtest [23:24:20]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 699s memory-monitor-dbus PASS 699s autopkgtest [23:24:20]: test socket: preparing testbed 699s Reading package lists... 699s Building dependency tree... 699s Reading state information... 699s Solving dependencies... 699s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 700s autopkgtest [23:24:21]: test socket: [----------------------- 700s Running test: glib/socket.test 700s TAP version 14 700s # random seed: R02S696b7552c7033b3b101a63814cee3ae3 700s 1..30 700s # Start of socket tests 701s ok 1 /socket/ipv4_sync 701s # slow test /socket/ipv4_sync executed in 1.00 secs 702s ok 2 /socket/ipv4_async 702s # slow test /socket/ipv4_async executed in 1.00 secs 702s ok 3 /socket/ipv6_sync 702s ok 4 /socket/ipv6_async 702s ok 5 /socket/ipv6_v4mapped 703s ok 6 /socket/close_graceful 703s # slow test /socket/close_graceful executed in 1.00 secs 703s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 703s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 703s ok 8 /socket/fd_reuse 703s ok 9 /socket/address 703s ok 10 /socket/unix-from-fd 703s ok 11 /socket/unix-connection 703s ok 12 /socket/unix-connection-ancillary-data 703s ok 13 /socket/source-postmortem 703s ok 14 /socket/read_write 703s ok 15 /socket/read_writev 703s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 703s ok 16 /socket/receive_bytes 703s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 703s ok 17 /socket/receive_bytes_from 703s # Start of ipv4_sync tests 703s ok 18 /socket/ipv4_sync/datagram 703s # Start of datagram tests 704s ok 19 /socket/ipv4_sync/datagram/timeouts 704s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 704s # End of datagram tests 704s # End of ipv4_sync tests 704s # Start of ipv6_sync tests 704s ok 20 /socket/ipv6_sync/datagram 704s # Start of datagram tests 705s ok 21 /socket/ipv6_sync/datagram/timeouts 705s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 705s # End of datagram tests 705s # End of ipv6_sync tests 705s # Start of reuse tests 705s ok 22 /socket/reuse/tcp 705s ok 23 /socket/reuse/udp 705s # End of reuse tests 705s # Start of get_available tests 705s ok 24 /socket/get_available/datagram 705s ok 25 /socket/get_available/stream 705s # End of get_available tests 705s # Start of credentials tests 705s # Supported on this OS: GCredentials:linux-ucred:pid=0 705s ok 26 /socket/credentials/tcp_client 705s # Supported on this OS: GCredentials:linux-ucred:pid=0 705s ok 27 /socket/credentials/tcp_server 705s # Supported on this OS: GCredentials:linux-ucred:pid=66015,uid=1000,gid=1000 705s ok 28 /socket/credentials/unix_socketpair 705s # End of credentials tests 705s # Start of accept tests 705s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 705s ok 29 /socket/accept/cancelled 705s # End of accept tests 705s # Start of connect tests 705s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 705s ok 30 /socket/connect/cancelled 705s # End of connect tests 705s # End of socket tests 705s PASS: glib/socket.test 705s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=6048 706s autopkgtest [23:24:27]: test socket: -----------------------] 706s socket PASS 706s autopkgtest [23:24:27]: test socket: - - - - - - - - - - results - - - - - - - - - - 706s autopkgtest [23:24:27]: test testfilemonitor: preparing testbed 707s Reading package lists... 707s Building dependency tree... 707s Reading state information... 707s Solving dependencies... 707s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 707s autopkgtest [23:24:28]: test testfilemonitor: [----------------------- 708s Running test: glib/testfilemonitor.test 708s TAP version 14 708s # random seed: R02S206c14603fbf9159f5d9cec2d2c3e2f5 708s 1..8 708s # Start of monitor tests 708s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 708s # Using temporary directory: /tmp/gio-test-testfilemonitor_ZULTE3 708s # Using GFileMonitor GInotifyFileMonitor 710s ok 1 /monitor/atomic-replace 710s # slow test /monitor/atomic-replace executed in 2.00 secs 710s # Using temporary directory: /tmp/gio-test-testfilemonitor_2S0TE3 710s # Using GFileMonitor GInotifyFileMonitor 712s ok 2 /monitor/file-changes 712s # slow test /monitor/file-changes executed in 2.50 secs 712s # Using temporary directory: /tmp/gio-test-testfilemonitor_9Z0IE3 712s # Using GFileMonitor GInotifyFileMonitor 713s Executing: glib/testfilemonitor.test 716s ok 3 /monitor/dir-monitor 716s # slow test /monitor/dir-monitor executed in 3.50 secs 716s # Using temporary directory: /tmp/gio-test-testfilemonitor_YYTTE3 716s # Using GFileMonitor GInotifyFileMonitor 718s Executing: glib/testfilemonitor.test 723s Executing: glib/testfilemonitor.test 728s Executing: glib/testfilemonitor.test 733s Executing: glib/testfilemonitor.test 738s Executing: glib/testfilemonitor.test 741s ok 4 /monitor/dir-not-existent 741s # slow test /monitor/dir-not-existent executed in 25.02 secs 741s # Using temporary directory: /tmp/gio-test-testfilemonitor_IIAUE3 741s # Using GFileMonitor 0 GInotifyFileMonitor 741s # Using GFileMonitor 1 GInotifyFileMonitor 743s ok 5 /monitor/cross-dir-moves 743s # slow test /monitor/cross-dir-moves executed in 2.00 secs 743s # Using temporary directory: /tmp/gio-test-testfilemonitor_VRPUE3 743s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 743s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 743s ok 6 /monitor/finalize-in-callback 743s # Using temporary directory: /tmp/gio-test-testfilemonitor_1SQUE3 743s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 743s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 743s ok 7 /monitor/root 743s # Start of file tests 743s # Using temporary directory: /tmp/gio-test-testfilemonitor_LGRUE3 743s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 743s # Running with hard link tests 743s # Using GFileMonitor GInotifyFileMonitor 743s Executing: glib/testfilemonitor.test 746s # Event 0 at expected index 7 skipped because it is marked as optional 746s # Event 2 at expected index 11 skipped because it is marked as optional 746s ok 8 /monitor/file/hard-links 746s # slow test /monitor/file/hard-links executed in 3.50 secs 746s # End of file tests 746s # End of monitor tests 746s PASS: glib/testfilemonitor.test 746s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=6056 746s autopkgtest [23:25:07]: test testfilemonitor: -----------------------] 747s testfilemonitor PASS 747s autopkgtest [23:25:08]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 747s autopkgtest [23:25:08]: test thread-pool-slow: preparing testbed 747s Reading package lists... 747s Building dependency tree... 747s Reading state information... 747s Solving dependencies... 747s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 748s autopkgtest [23:25:09]: test thread-pool-slow: [----------------------- 748s Running test: glib/thread-pool-slow.test 748s TAP version 14 748s # random seed: R02S8cc24ba7026f84bdeaa83e8de1c4a47e 748s 1..7 748s # Start of threadpool tests 748s ok 1 /threadpool/functions 749s ok 2 /threadpool/stop-unused 749s # slow test /threadpool/stop-unused executed in 0.51 secs 749s ok 3 /threadpool/pools 749s # [unsorted] ===> pushed new thread with id:27, number of threads:1, unprocessed:1 749s # [unsorted] ===> pushed new thread with id:37, number of threads:2, unprocessed:2 749s # [unsorted] ===> pushed new thread with id:99, number of threads:3, unprocessed:3 749s # [unsorted] ===> pushed new thread with id:93, number of threads:4, unprocessed:4 749s # [unsorted] ===> pushed new thread with id:20, number of threads:5, unprocessed:5 749s # [unsorted] ===> pushed new thread with id:94, number of threads:6, unprocessed:6 749s # [unsorted] ===> pushed new thread with id:81, number of threads:7, unprocessed:7 749s # [unsorted] ===> pushed new thread with id:52, number of threads:8, unprocessed:8 749s # [unsorted] ===> pushed new thread with id:85, number of threads:9, unprocessed:4 749s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:5 749s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:6 749s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:7 749s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:8 749s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:9 749s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:10 749s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:11 749s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:12 749s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:13 749s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:9 749s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:10 749s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:11 749s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:12 749s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:13 749s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:14 749s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:15 749s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:16 749s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:17 749s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:18 749s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:19 749s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:20 749s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:21 749s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:22 749s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:23 749s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:24 749s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:25 749s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:26 749s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:27 749s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:28 749s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:29 749s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:30 749s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:31 749s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:32 749s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:33 749s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:34 749s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:35 749s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:36 749s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:37 749s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:38 749s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:39 749s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:40 749s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:41 749s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:42 749s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:43 749s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:44 749s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:45 749s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:46 749s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:47 749s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:48 749s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:49 749s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:50 749s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:51 749s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:52 749s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:53 749s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:54 749s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:55 749s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:56 749s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:57 749s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:58 749s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:59 749s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:60 749s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:61 749s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:62 749s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:63 749s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:64 749s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:65 749s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:66 749s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:67 749s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:68 749s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:69 749s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:70 749s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:71 749s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:72 749s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:73 749s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:74 749s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:75 749s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:76 749s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:77 749s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:78 749s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:79 749s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:80 749s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:81 749s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:82 749s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:83 749s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:84 749s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:85 749s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:86 749s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:87 749s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:88 749s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:89 749s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:90 749s ok 4 /threadpool/no-sort 749s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:1 749s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:2 749s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:3 749s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:4 749s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:5 749s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:6 749s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:7 749s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:8 749s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:9 749s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:10 749s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:11 749s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:12 749s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:13 749s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:14 749s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:15 749s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:16 749s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:17 749s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:18 749s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:19 749s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:20 749s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:21 749s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:22 749s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:23 749s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:24 749s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:25 749s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:26 749s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:27 749s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:28 749s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:29 749s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:30 749s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:31 749s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:32 749s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:33 749s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:34 749s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:35 749s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:36 749s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:37 749s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:38 749s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:39 749s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:40 749s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:41 749s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:42 749s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:43 749s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:44 749s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:45 749s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:46 749s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:47 749s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:48 749s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:49 749s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:50 749s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:51 749s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:52 749s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:53 749s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:54 749s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:55 749s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:56 749s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:57 749s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:58 749s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:59 749s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:60 749s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:61 749s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:62 749s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:63 749s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:64 749s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:65 749s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:66 749s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:67 749s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:68 749s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:69 749s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:70 749s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:71 749s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:72 749s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:73 749s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:74 749s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:75 749s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:76 749s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:77 749s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:78 749s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:79 749s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:80 749s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:81 749s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:82 749s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:83 749s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:84 749s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:85 749s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:86 749s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:87 749s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:88 749s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:89 749s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:90 749s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:91 749s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:92 749s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:93 749s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:94 749s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:95 749s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:96 749s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:97 749s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:98 749s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:99 749s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:100 749s # Starting thread pool processing 749s ok 5 /threadpool/sort 749s ok 6 /threadpool/stop-unused-multiple 749s # slow test /threadpool/stop-unused-multiple executed in 0.50 secs 749s # Pool idle thread count: 0, unprocessed jobs: 40 750s # Pool idle thread count: 0, unprocessed jobs: 0 750s # Pool idle thread count: 0, unprocessed jobs: 0 750s # Pool idle thread count: 10, unprocessed jobs: 0 750s # Pool idle thread count: 10, unprocessed jobs: 0 751s # Pool idle thread count: 10, unprocessed jobs: 0 751s # Pool idle thread count: 10, unprocessed jobs: 0 751s # Pool idle thread count: 10, unprocessed jobs: 0 751s # Pool idle thread count: 10, unprocessed jobs: 0 752s # Pool idle thread count: 10, unprocessed jobs: 0 752s # Pool idle thread count: 10, unprocessed jobs: 0 752s # Pool idle thread count: 10, unprocessed jobs: 0 752s # Pool idle thread count: 10, unprocessed jobs: 0 753s # Pool idle thread count: 10, unprocessed jobs: 0 753s # Pool idle thread count: 10, unprocessed jobs: 0 753s # Pool idle thread count: 10, unprocessed jobs: 0 753s # Pool idle thread count: 10, unprocessed jobs: 0 754s Executing: glib/thread-pool-slow.test 754s # Pool idle thread count: 10, unprocessed jobs: 0 754s # Pool idle thread count: 10, unprocessed jobs: 0 754s # Pool idle thread count: 10, unprocessed jobs: 0 754s # Pool idle thread count: 10, unprocessed jobs: 0 755s # Pool idle thread count: 10, unprocessed jobs: 0 755s # Pool idle thread count: 10, unprocessed jobs: 0 755s # Pool idle thread count: 10, unprocessed jobs: 0 755s # Pool idle thread count: 10, unprocessed jobs: 0 756s # Pool idle thread count: 10, unprocessed jobs: 0 756s # Pool idle thread count: 10, unprocessed jobs: 0 756s # Pool idle thread count: 10, unprocessed jobs: 0 756s # Pool idle thread count: 10, unprocessed jobs: 0 757s # Pool idle thread count: 10, unprocessed jobs: 0 757s # Pool idle thread count: 10, unprocessed jobs: 0 757s # Pool idle thread count: 10, unprocessed jobs: 0 757s # Pool idle thread count: 10, unprocessed jobs: 0 758s # Pool idle thread count: 10, unprocessed jobs: 0 758s # Pool idle thread count: 10, unprocessed jobs: 0 758s # Pool idle thread count: 10, unprocessed jobs: 2 758s # Pool idle thread count: 8, unprocessed jobs: 0 758s # Pool idle thread count: 8, unprocessed jobs: 0 758s # Pool idle thread count: 8, unprocessed jobs: 0 759s Executing: glib/thread-pool-slow.test 759s # Pool idle thread count: 10, unprocessed jobs: 0 759s # Pool idle thread count: 10, unprocessed jobs: 0 759s # Pool idle thread count: 10, unprocessed jobs: 0 759s # Pool idle thread count: 10, unprocessed jobs: 0 760s # Pool idle thread count: 10, unprocessed jobs: 0 760s # Pool idle thread count: 10, unprocessed jobs: 0 760s # Pool idle thread count: 2, unprocessed jobs: 0 760s # Pool idle thread count: 2, unprocessed jobs: 0 761s # Pool idle thread count: 2, unprocessed jobs: 0 761s # Pool idle thread count: 2, unprocessed jobs: 0 761s # Pool idle thread count: 2, unprocessed jobs: 0 761s # Pool idle thread count: 2, unprocessed jobs: 0 762s # Pool idle thread count: 2, unprocessed jobs: 0 762s # Pool idle thread count: 2, unprocessed jobs: 0 762s # Pool idle thread count: 2, unprocessed jobs: 0 762s # Pool idle thread count: 2, unprocessed jobs: 0 763s # Pool idle thread count: 2, unprocessed jobs: 0 763s # Pool idle thread count: 2, unprocessed jobs: 0 763s # Pool idle thread count: 2, unprocessed jobs: 0 763s # Pool idle thread count: 2, unprocessed jobs: 0 764s Executing: glib/thread-pool-slow.test 764s # Pool idle thread count: 2, unprocessed jobs: 0 764s # Pool idle thread count: 2, unprocessed jobs: 0 764s # Pool idle thread count: 2, unprocessed jobs: 0 764s # Pool idle thread count: 2, unprocessed jobs: 0 765s # Pool idle thread count: 2, unprocessed jobs: 0 765s # Pool idle thread count: 2, unprocessed jobs: 0 765s # Pool idle thread count: 2, unprocessed jobs: 0 765s # Pool idle thread count: 2, unprocessed jobs: 0 766s # Pool idle thread count: 2, unprocessed jobs: 0 766s # Pool idle thread count: 2, unprocessed jobs: 0 766s # Pool idle thread count: 2, unprocessed jobs: 0 766s # Pool idle thread count: 2, unprocessed jobs: 0 767s # Pool idle thread count: 2, unprocessed jobs: 0 767s # Pool idle thread count: 2, unprocessed jobs: 0 767s # Pool idle thread count: 2, unprocessed jobs: 0 767s # Pool idle thread count: 2, unprocessed jobs: 0 768s # Pool idle thread count: 2, unprocessed jobs: 0 768s # Pool idle thread count: 2, unprocessed jobs: 0 768s # Pool idle thread count: 2, unprocessed jobs: 0 768s # Pool idle thread count: 2, unprocessed jobs: 0 769s Executing: glib/thread-pool-slow.test 769s ok 7 /threadpool/idle-time 769s # slow test /threadpool/idle-time executed in 19.52 secs 769s # End of threadpool tests 769s PASS: glib/thread-pool-slow.test 769s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=4156 769s autopkgtest [23:25:30]: test thread-pool-slow: -----------------------] 770s thread-pool-slow PASS 770s autopkgtest [23:25:31]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 770s autopkgtest [23:25:31]: test threadtests: preparing testbed 770s Reading package lists... 770s Building dependency tree... 770s Reading state information... 770s Solving dependencies... 770s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 771s autopkgtest [23:25:32]: test threadtests: [----------------------- 771s Running test: glib/threadtests.test 771s TAP version 14 771s # random seed: R02S6b2acd0b24247b2c6d15aa0ac9c2af5d 771s 1..5 771s # Start of GObject tests 771s ok 1 /GObject/threaded-object-init 772s ok 2 /GObject/threaded-weak-ref 772s # slow test /GObject/threaded-weak-ref executed in 0.53 secs 772s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 772s # /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 772s ok 3 /GObject/threaded-toggle-notify 772s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 772s # Start of threaded-weak-ref tests 772s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 772s # /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. 772s ok 5 /GObject/threaded-weak-ref/on-finalization 772s # End of threaded-weak-ref tests 772s # End of GObject tests 772s PASS: glib/threadtests.test 772s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.3s; system=0.3s; maxrss=3836 772s autopkgtest [23:25:33]: test threadtests: -----------------------] 772s autopkgtest [23:25:33]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 772s threadtests PASS 773s autopkgtest [23:25:34]: test timeout: preparing testbed 773s Reading package lists... 773s Building dependency tree... 773s Reading state information... 773s Solving dependencies... 773s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 774s autopkgtest [23:25:35]: test timeout: [----------------------- 774s Running test: glib/timeout.test 774s TAP version 14 774s # random seed: R02S6ae0ea5aa53c2af06fd7f7102d3f4724 774s 1..5 774s # Start of timeout tests 774s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 776s ok 1 /timeout/seconds 776s # slow test /timeout/seconds executed in 2.10 secs 778s ok 2 /timeout/seconds-once 778s # slow test /timeout/seconds-once executed in 2.10 secs 778s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 779s Executing: glib/timeout.test 780s ok 3 /timeout/weeks-overflow 780s # slow test /timeout/weeks-overflow executed in 2.10 secs 780s ok 4 /timeout/far-future-ready-time 784s Executing: glib/timeout.test 789s Executing: glib/timeout.test 791s ok 5 /timeout/rounding 791s # slow test /timeout/rounding executed in 10.66 secs 791s # End of timeout tests 791s PASS: glib/timeout.test 791s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3304 791s autopkgtest [23:25:52]: test timeout: -----------------------] 791s autopkgtest [23:25:52]: test timeout: - - - - - - - - - - results - - - - - - - - - - 791s timeout PASS 792s autopkgtest [23:25:53]: test timer: preparing testbed 792s Reading package lists... 792s Building dependency tree... 792s Reading state information... 792s Solving dependencies... 792s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 793s autopkgtest [23:25:54]: test timer: [----------------------- 793s Running test: glib/timer.test 793s TAP version 14 793s # random seed: R02Sc87f908ed35ef276156de09e84d370f1 793s 1..10 793s # Start of timer tests 793s ok 1 /timer/basic 793s ok 2 /timer/stop 793s ok 3 /timer/continue 793s ok 4 /timer/reset 793s ok 5 /timer/is_active 793s # End of timer tests 793s # Start of timeval tests 793s ok 6 /timeval/add 793s ok 7 /timeval/from-iso8601 793s ok 8 /timeval/to-iso8601 793s # Start of to-iso8601 tests 793s ok 9 /timeval/to-iso8601/overflow 793s # End of to-iso8601 tests 793s # End of timeval tests 793s # Start of usleep tests 793s ok 10 /usleep/with-zero-wait 793s # End of usleep tests 793s PASS: glib/timer.test 793s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3412 793s autopkgtest [23:25:54]: test timer: -----------------------] 793s timer PASS 793s autopkgtest [23:25:54]: test timer: - - - - - - - - - - results - - - - - - - - - - 794s autopkgtest [23:25:55]: test 1065022-futureproofing: preparing testbed 800s Creating nova instance adt-resolute-amd64-glib2.0-20251018-231241-juju-7f2275-prod-proposed-migration-environment-20-256cbe47-89af-4748-b53b-95dc8d8cd74c from image adt/ubuntu-resolute-amd64-server-20251018.img (UUID dd697a48-b6cc-4a02-84bf-0f9f2fad5f89)... 823s autopkgtest [23:26:24]: testbed dpkg architecture: amd64 823s autopkgtest [23:26:24]: testbed apt version: 3.1.6ubuntu2 824s autopkgtest [23:26:25]: @@@@@@@@@@@@@@@@@@@@ test bed setup 824s autopkgtest [23:26:25]: testbed release detected to be: resolute 824s autopkgtest [23:26:25]: updating testbed package index (apt update) 825s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 825s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 825s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 825s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 825s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 825s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [431 kB] 825s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [18.2 kB] 825s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [54.3 kB] 825s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [65.5 kB] 825s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [108 kB] 825s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [28.0 kB] 825s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3208 B] 825s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [319 kB] 825s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [125 kB] 825s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [3088 B] 825s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [9188 B] 825s Fetched 1253 kB in 1s (1779 kB/s) 826s Reading package lists... 826s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 826s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 826s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 826s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 827s Reading package lists... 827s Reading package lists... 827s Building dependency tree... 827s Reading state information... 827s Calculating upgrade... 827s The following packages will be upgraded: 827s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 827s libpython3-stdlib python3 python3-minimal 827s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 827s Need to get 2751 kB of archives. 827s After this operation, 2048 B of additional disk space will be used. 827s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 827s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 827s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 827s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.8ubuntu1 [1140 kB] 828s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.8ubuntu1 [1438 kB] 828s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libgirepository-1.0-1 amd64 1.86.0-6 [85.9 kB] 828s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gir1.2-girepository-2.0 amd64 1.86.0-6 [25.3 kB] 828s dpkg-preconfigure: unable to re-open stdin: No such file or directory 828s Fetched 2751 kB in 1s (2958 kB/s) 828s (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 ... 78439 files and directories currently installed.) 828s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 828s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 828s Setting up python3-minimal (3.13.7-2) ... 829s (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 ... 78439 files and directories currently installed.) 829s Preparing to unpack .../0-python3_3.13.7-2_amd64.deb ... 829s running python pre-rtupdate hooks for python3.13... 829s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 829s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_amd64.deb ... 829s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 829s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_amd64.deb ... 829s Unpacking libapt-pkg7.0:amd64 (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 829s Preparing to unpack .../3-apt_3.1.8ubuntu1_amd64.deb ... 829s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 829s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_amd64.deb ... 829s Unpacking libgirepository-1.0-1:amd64 (1.86.0-6) over (1.84.0-1) ... 829s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_amd64.deb ... 829s Unpacking gir1.2-girepository-2.0:amd64 (1.86.0-6) over (1.84.0-1) ... 829s Setting up libgirepository-1.0-1:amd64 (1.86.0-6) ... 829s Setting up libapt-pkg7.0:amd64 (3.1.8ubuntu1) ... 829s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 829s Setting up apt (3.1.8ubuntu1) ... 829s Setting up python3 (3.13.7-2) ... 829s running python rtupdate hooks for python3.13... 829s running python post-rtupdate hooks for python3.13... 829s Setting up gir1.2-girepository-2.0:amd64 (1.86.0-6) ... 829s Processing triggers for man-db (2.13.1-1) ... 830s Processing triggers for libc-bin (2.42-0ubuntu3) ... 830s autopkgtest [23:26:31]: upgrading testbed (apt dist-upgrade and autopurge) 831s Reading package lists... 831s Building dependency tree... 831s Reading state information... 831s Calculating upgrade... 831s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 831s Reading package lists... 832s Building dependency tree... 832s Reading state information... 832s Solving dependencies... 832s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 832s autopkgtest [23:26:33]: rebooting testbed after setup commands that affected boot 848s Reading package lists... 848s Building dependency tree... 848s Reading state information... 849s Solving dependencies... 849s The following NEW packages will be installed: 849s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 849s libdconf1 849s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 849s Need to get 143 kB of archives. 849s After this operation, 649 kB of additional disk space will be used. 849s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libdconf1 amd64 0.40.0-5willsync1 [41.3 kB] 849s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 dconf-service amd64 0.40.0-5willsync1 [28.7 kB] 849s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 dconf-gsettings-backend amd64 0.40.0-5willsync1 [23.5 kB] 849s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 dpkg-repack all 1.54 [11.2 kB] 849s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 gsettings-desktop-schemas all 49.0-1ubuntu1 [38.1 kB] 849s Fetched 143 kB in 0s (9755 kB/s) 849s Selecting previously unselected package libdconf1:amd64. 849s (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 ... 78439 files and directories currently installed.) 849s Preparing to unpack .../libdconf1_0.40.0-5willsync1_amd64.deb ... 849s Unpacking libdconf1:amd64 (0.40.0-5willsync1) ... 849s Selecting previously unselected package dconf-service. 849s Preparing to unpack .../dconf-service_0.40.0-5willsync1_amd64.deb ... 849s Unpacking dconf-service (0.40.0-5willsync1) ... 849s Selecting previously unselected package dconf-gsettings-backend:amd64. 849s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5willsync1_amd64.deb ... 849s Unpacking dconf-gsettings-backend:amd64 (0.40.0-5willsync1) ... 849s Selecting previously unselected package dpkg-repack. 849s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 849s Unpacking dpkg-repack (1.54) ... 849s Selecting previously unselected package gsettings-desktop-schemas. 849s Preparing to unpack .../gsettings-desktop-schemas_49.0-1ubuntu1_all.deb ... 849s Unpacking gsettings-desktop-schemas (49.0-1ubuntu1) ... 849s Setting up dpkg-repack (1.54) ... 849s Setting up libdconf1:amd64 (0.40.0-5willsync1) ... 849s Setting up dconf-service (0.40.0-5willsync1) ... 849s Setting up dconf-gsettings-backend:amd64 (0.40.0-5willsync1) ... 849s Setting up gsettings-desktop-schemas (49.0-1ubuntu1) ... 849s Processing triggers for man-db (2.13.1-1) ... 849s Processing triggers for libglib2.0-0t64:amd64 (2.86.0-2) ... 849s Processing triggers for libc-bin (2.42-0ubuntu3) ... 852s autopkgtest [23:26:53]: test 1065022-futureproofing: [----------------------- 852s + export DEBIAN_FRONTEND=noninteractive 852s + n=0 852s + failed=0 852s + binary_package=libglib2.0-0t64 852s + future_binary_package=libglib2.0-0xyz 852s + pwd 852s + srcdir=/tmp/autopkgtest.Jnk3nP/build.NnI/src 852s + mktemp -d 852s + tmpdir=/tmp/tmp.fNVLglIMT1 852s + cd /tmp/tmp.fNVLglIMT1 852s + exec 852s + [ -e /tmp/autopkgtest.Jnk3nP/build.NnI/src/debian/tests/manual/local-1065022.sources ] 852s + dpkg-query -W dpkg-repack 852s dpkg-repack 1.54 852s + dpkg-query -s libglib2.0-0t64 852s Package: libglib2.0-0t64 852s Status: install ok installed 852s Priority: important 852s Section: libs 852s Installed-Size: 4334 852s Maintainer: Ubuntu Developers 852s Architecture: amd64 852s Multi-Arch: same 852s Source: glib2.0 852s Version: 2.86.0-2 852s Replaces: libglib2.0-0 (<< 2.80.0-7~) 852s Provides: libgio-2.0-0 (= 2.86.0-2), libglib-2.0-0 (= 2.86.0-2), libglib2.0-0 (= 2.86.0-2), libgmodule-2.0-0 (= 2.86.0-2), libgobject-2.0-0 (= 2.86.0-2), libgthread-2.0-0 (= 2.86.0-2) 852s 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) 852s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 852s Suggests: low-memory-monitor 852s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~) 852s Description: GLib library of C routines 852s GLib is a library containing many useful C routines for things such 852s as trees, hashes, lists, and strings. It is a useful general-purpose 852s C library used by projects such as GTK+, GIMP, and GNOME. 852s . 852s This package contains the shared libraries. 852s Original-Maintainer: Debian GNOME Maintainers 852s Homepage: https://gitlab.gnome.org/GNOME/glib 852s + dpkg-query -W -f ${Version} libglib2.0-0t64 852s + binary_version=2.86.0-2 852s + dpkg-repack --generate libglib2.0-0t64 852s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 852s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.IypyOe for libglib2.0-0t64 852s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.IypyOe ." 852s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.IypyOe/DEBIAN/control 852s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.IypyOe/DEBIAN/control 852s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.IypyOe/DEBIAN/control 852s + env binary_package=libglib2.0-0t64 binary_version=2.86.0-2 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package} (= $ENV{binary_version})/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.IypyOe/DEBIAN/control 852s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.IypyOe libglib2.0-0xyz.deb 852s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 853s + dpkg-deb --info libglib2.0-0xyz.deb 853s new Debian package, version 2.0. 853s size 1604534 bytes: control archive=25881 bytes. 853s 1381 bytes, 24 lines control 853s 1144 bytes, 14 lines md5sums 853s 1288 bytes, 44 lines * postinst #!/bin/sh 853s 2577 bytes, 87 lines * postrm #!/bin/sh 853s 2408 bytes, 53 lines * preinst #!/bin/sh 853s 466 bytes, 10 lines shlibs 853s 172677 bytes, 4529 lines symbols 853s 173 bytes, 4 lines triggers 853s Package: libglib2.0-0xyz 853s Source: glib2.0 853s Version: 2.86.0-2 853s Architecture: amd64 853s Maintainer: Ubuntu Developers 853s Installed-Size: 4334 853s 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) 853s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 853s Suggests: low-memory-monitor 853s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~), libglib2.0-0t64 853s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 853s Provides: libgio-2.0-0 (= 2.86.0-2), libglib-2.0-0 (= 2.86.0-2), libglib2.0-0 (= 2.86.0-2), libgmodule-2.0-0 (= 2.86.0-2), libgobject-2.0-0 (= 2.86.0-2), libgthread-2.0-0 (= 2.86.0-2), libglib2.0-0t64 (= 2.86.0-2) 853s Section: libs 853s Priority: important 853s Multi-Arch: same 853s Homepage: https://gitlab.gnome.org/GNOME/glib 853s Description: GLib library of C routines 853s GLib is a library containing many useful C routines for things such 853s as trees, hashes, lists, and strings. It is a useful general-purpose 853s C library used by projects such as GTK+, GIMP, and GNOME. 853s . 853s This package contains the shared libraries. 853s . 853s (Repackaged on Sat, 18 Oct 2025 23:26:52 +0000 by dpkg-repack.) 853s + dpkg-deb --contents libglib2.0-0xyz.deb 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/lib/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/lib/x86_64-linux-gnu/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/lib/x86_64-linux-gnu/gio/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/lib/x86_64-linux-gnu/gio/modules/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/lib/x86_64-linux-gnu/glib-2.0/ 853s -rwxr-xr-x root/root 14728 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/glib-2.0/gio-launch-desktop 853s -rwxr-xr-x root/root 18824 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/glib-2.0/gio-querymodules 853s -rwxr-xr-x root/root 55768 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/glib-2.0/glib-compile-schemas 853s -rw-r--r-- root/root 1936936 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.8600.0 853s -rw-r--r-- root/root 1404688 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8600.0 853s -rw-r--r-- root/root 22816 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.8600.0 853s -rw-r--r-- root/root 403928 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.8600.0 853s -rw-r--r-- root/root 14568 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0.8600.0 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/doc/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/doc/libglib2.0-0t64/ 853s -rw-r--r-- root/root 256698 2025-09-05 12:42 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 853s -rw-r--r-- root/root 1703 2025-09-12 02:01 ./usr/share/doc/libglib2.0-0t64/README.Debian 853s -rw-r--r-- root/root 3248 2025-09-05 12:42 ./usr/share/doc/libglib2.0-0t64/README.md 853s -rw-r--r-- root/root 37088 2025-09-12 02:01 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 853s -rw-r--r-- root/root 55103 2025-09-12 02:01 ./usr/share/doc/libglib2.0-0t64/copyright 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/glib-2.0/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/glib-2.0/schemas/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/lintian/ 853s drwxr-xr-x root/root 0 2025-10-18 23:26 ./usr/share/lintian/overrides/ 853s -rw-r--r-- root/root 520 2025-09-12 02:01 ./usr/share/lintian/overrides/libglib2.0-0t64 853s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 -> libgio-2.0.so.0.8600.0 853s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.8600.0 853s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8600.0 853s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8600.0 853s lrwxrwxrwx root/root 0 2025-09-12 02:01 ./usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8600.0 853s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 853s Reading package lists... 853s Building dependency tree... 853s Reading state information... 853s dconf-gsettings-backend is already the newest version (0.40.0-5willsync1). 853s gsettings-desktop-schemas is already the newest version (49.0-1ubuntu1). 853s Solving dependencies... 853s The following additional packages will be installed: 853s xdg-user-dirs 853s Suggested packages: 853s low-memory-monitor 853s The following packages will be REMOVED: 853s libglib2.0-0t64 853s The following NEW packages will be installed: 853s libglib2.0-0xyz xdg-user-dirs 853s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 853s Need to get 19.5 kB/1624 kB of archives. 853s After this operation, 172 kB of additional disk space will be used. 853s Get:1 /tmp/tmp.fNVLglIMT1/libglib2.0-0xyz.deb libglib2.0-0xyz amd64 2.86.0-2 [1605 kB] 853s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 xdg-user-dirs amd64 0.18-3 [19.5 kB] 854s Fetched 19.5 kB in 0s (1056 kB/s) 854s dpkg: libglib2.0-0t64:amd64: dependency problems, but removing anyway as you requested: 854s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 854s python3-gi depends on libglib2.0-0t64 (>= 2.78.0). 854s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 854s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 854s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0). 854s libnetplan1:amd64 depends on libglib2.0-0t64 (>= 2.76.0). 854s libgirepository-1.0-1:amd64 depends on libglib2.0-0t64 (>= 2.82.0). 854s libdconf1:amd64 depends on libglib2.0-0t64 (>= 2.80.0). 854s gir1.2-glib-2.0:amd64 depends on libglib2.0-0t64 (= 2.86.0-2). 854s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 854s dconf-gsettings-backend:amd64 depends on libglib2.0-0t64 (>= 2.80.0). 854s 854s (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 ... 78506 files and directories currently installed.) 854s Removing libglib2.0-0t64:amd64 (2.86.0-2) ... 854s Selecting previously unselected package libglib2.0-0xyz:amd64. 854s (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 ... 78487 files and directories currently installed.) 854s Preparing to unpack .../libglib2.0-0xyz.deb ... 854s Unpacking libglib2.0-0xyz:amd64 (2.86.0-2) ... 854s Selecting previously unselected package xdg-user-dirs. 854s Preparing to unpack .../xdg-user-dirs_0.18-3_amd64.deb ... 854s Unpacking xdg-user-dirs (0.18-3) ... 854s Setting up xdg-user-dirs (0.18-3) ... 854s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 854s Setting up libglib2.0-0xyz:amd64 (2.86.0-2) ... 854s Processing triggers for libc-bin (2.42-0ubuntu3) ... 854s Processing triggers for man-db (2.13.1-1) ... 854s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 854s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 854s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 854s + n=1 854s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 854s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 854s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 854s + n=2 854s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 854s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 854s + assert testok 3 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s + n=3 854s + test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s + echo ok 3 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s + assert test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s + n=4 854s + test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s + echo ok 4 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s + assert test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s + n=5 854s + test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s + echo ok 5 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s + assert test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s + n=6 854s + test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s + echo ok 6 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s + apt-get -y purge libglib2.0-0t64 854s ok 4 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 854s ok 5 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s ok 6 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 854s Reading package lists... 854s Building dependency tree... 854s Reading state information... 854s Solving dependencies... 855s The following packages will be REMOVED: 855s libglib2.0-0t64* 855s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 855s After this operation, 0 B of additional disk space will be used. 855s (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 ... 78521 files and directories currently installed.) 855s Purging configuration files for libglib2.0-0t64:amd64 (2.86.0-2) ... 855s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 855s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 855s ok 9 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s ok 10 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s ok 11 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s ok 12 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 855s + n=7 855s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 855s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 855s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 855s + n=8 855s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 855s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 855s + assert test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s + n=9 855s + test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s + echo ok 9 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s + assert test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s + n=10 855s + test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s + echo ok 10 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 855s + assert test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + n=11 855s + test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + echo ok 11 - test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + assert test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + n=12 855s + test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + echo ok 12 - test -s /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 855s + apt-get -y purge libglib2.0-0xyz 855s Reading package lists... 855s Building dependency tree... 855s Reading state information... 855s Solving dependencies... 855s The following additional packages will be installed: 855s libglib2.0-0t64 855s Suggested packages: 855s low-memory-monitor 855s The following packages will be REMOVED: 855s libglib2.0-0xyz* 855s The following NEW packages will be installed: 855s libglib2.0-0t64 855s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 855s Need to get 1605 kB of archives. 855s After this operation, 0 B of additional disk space will be used. 855s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libglib2.0-0t64 amd64 2.86.0-2 [1605 kB] 855s Fetched 1605 kB in 0s (28.1 MB/s) 855s dpkg: libglib2.0-0xyz:amd64: dependency problems, but removing anyway as you requested: 855s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s python3-gi depends on libglib2.0-0t64 (>= 2.78.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s libnetplan1:amd64 depends on libglib2.0-0t64 (>= 2.76.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s libgirepository-1.0-1:amd64 depends on libglib2.0-0t64 (>= 2.82.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s libdconf1:amd64 depends on libglib2.0-0t64 (>= 2.80.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s gir1.2-glib-2.0:amd64 depends on libglib2.0-0t64 (= 2.86.0-2); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s dconf-gsettings-backend:amd64 depends on libglib2.0-0t64 (>= 2.80.0); however: 855s Package libglib2.0-0t64 is not installed. 855s Package libglib2.0-0xyz:amd64 which provides libglib2.0-0t64 is to be removed. 855s 855s (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 ... 78521 files and directories currently installed.) 855s Removing libglib2.0-0xyz:amd64 (2.86.0-2) ... 855s Selecting previously unselected package libglib2.0-0t64:amd64. 855s (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 ... 78502 files and directories currently installed.) 855s Preparing to unpack .../libglib2.0-0t64_2.86.0-2_amd64.deb ... 855s Unpacking libglib2.0-0t64:amd64 (2.86.0-2) ... 855s Setting up libglib2.0-0t64:amd64 (2.86.0-2) ... 855s Processing triggers for libc-bin (2.42-0ubuntu3) ... 856s (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 ... 78521 files and directories currently installed.) 856s Purging configuration files for libglib2.0-0xyz:amd64 (2.86.0-2) ... 856s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 856s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 856s + n=13 856s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 856s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 856s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 856s not ok 15 - should not have succeeded: test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 856s not ok 16 - should not have succeeded: test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 856s 1..16 856s + failed=1 856s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 856s + n=14 856s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 856s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 856s + failed=1 856s + assert_not test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 856s + n=15 856s + test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 856s + echo not ok 15 - should not have succeeded: test -e /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 856s + failed=1 856s + assert_not test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 856s + n=16 856s + test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 856s + echo not ok 16 - should not have succeeded: test -e /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache 856s + failed=1 856s + echo 1..16 856s + exit 1 856s autopkgtest [23:26:57]: test 1065022-futureproofing: -----------------------] 856s autopkgtest [23:26:57]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 856s 1065022-futureproofing FLAKY non-zero exit status 1 857s autopkgtest [23:26:58]: @@@@@@@@@@@@@@@@@@@@ summary 857s build PASS (superficial) 857s build-static PASS (superficial) 857s girepository-tools PASS (superficial) 857s libgio-2.0-dev-bin PASS (superficial) 857s libglib2.0-dev PASS (superficial) 857s installed-tests PASS 857s closure-refcount PASS 857s debugcontroller PASS 857s gdbus-server-auth PASS 857s gdbus-threading PASS 857s gmenumodel PASS 857s mainloop PASS 857s memory-monitor-dbus PASS 857s socket PASS 857s testfilemonitor PASS 857s thread-pool-slow PASS 857s threadtests PASS 857s timeout PASS 857s timer PASS 857s 1065022-futureproofing FLAKY non-zero exit status 1